Skip to content

Commit

Permalink
Storybook: update doc param values for ConfirmDialog (#54130)
Browse files Browse the repository at this point in the history
* Replacing format value with correct type

* Remove unnecessary format prop (default is true)
Some light formatting of default example code
  • Loading branch information
ramonjd authored Sep 4, 2023
1 parent 25d328a commit 263f3d6
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

1 comment on commit 263f3d6

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in 263f3d6.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/6068048223
📝 Reported issues:

Please sign in to comment.