Skip to content

Commit

Permalink
Remove unnecessary format prop (default is true)
Browse files Browse the repository at this point in the history
Some light formatting of default example code
  • Loading branch information
ramonjd committed Sep 3, 2023
1 parent 3661fda commit 317fa38
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions packages/components/src/confirm-dialog/stories/index.story.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,30 +87,29 @@ const _defaultSnippet = `() => {
return (
<>
<ConfirmDialog
isOpen={ isOpen }
onConfirm={ handleConfirm }
onCancel={ handleCancel }
>
Would you like to privately publish the post now?
</ConfirmDialog>
<ConfirmDialog
isOpen={ isOpen }
onConfirm={ handleConfirm }
onCancel={ handleCancel }
>
Would you like to privately publish the post now?
</ConfirmDialog>
<Heading level={ 1 }>{ confirmVal }</Heading>
<Heading level={ 1 }>{ confirmVal }</Heading>
<Button variant="primary" onClick={ () => setIsOpen( true ) }>
Open ConfirmDialog
</Button>
<Button variant="primary" onClick={ () => setIsOpen( true ) }>
Open ConfirmDialog
</Button>
</>
);
};`;
);
};`;
_default.args = {};
_default.parameters = {
docs: {
source: {
code: _defaultSnippet,
language: 'jsx',
type: 'auto',
format: true,
},
},
};
Expand Down

0 comments on commit 317fa38

Please sign in to comment.