Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Storybook: update doc param values for ConfirmDialog #54130

Merged
merged 2 commits into from
Sep 4, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading