Skip to content

Commit

Permalink
fix stories
Browse files Browse the repository at this point in the history
  • Loading branch information
Josmorsot committed Jan 21, 2022
1 parent 6515d79 commit 7766f2d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions packages/react-ui/storybook/stories/common/Dialog.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const options = {
};
export default options;

const Template = ({ content, ...args }) => {
const Template = ({ content = <TextContent />, ...args }) => {
const [open, setOpen] = React.useState(false);

const handleClickOpen = () => {
Expand Down Expand Up @@ -116,24 +116,21 @@ const FormContent = () => (
);

export const Default = Template.bind({});
Default.args = { content: <TextContent /> };

export const Form = Template.bind({});
Form.args = { content: <FormContent /> };

export const DisableEscapeKeyDown = Template.bind({});
DisableEscapeKeyDown.args = { content: <TextContent />, disableEscapeKeyDown: true };
DisableEscapeKeyDown.args = { disableEscapeKeyDown: true };

export const SlideTransition = Template.bind({});
SlideTransition.args = {
content: <TextContent />,
TransitionComponent: Slide,
TransitionProps: { direction: 'up', timeout: 300 }
};

export const FullScren = Template.bind({});
FullScren.args = {
content: <TextContent />,
fullScreen: true,
TransitionComponent: Slide,
TransitionProps: { direction: 'up', timeout: 300 }
Expand Down

0 comments on commit 7766f2d

Please sign in to comment.