From 7766f2df2d1278c822df7c1513698c94e5177060 Mon Sep 17 00:00:00 2001 From: Ivan Date: Fri, 21 Jan 2022 11:28:19 +0100 Subject: [PATCH] fix stories --- .../react-ui/storybook/stories/common/Dialog.stories.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/packages/react-ui/storybook/stories/common/Dialog.stories.js b/packages/react-ui/storybook/stories/common/Dialog.stories.js index 3f6b0031d..6fe6481c7 100644 --- a/packages/react-ui/storybook/stories/common/Dialog.stories.js +++ b/packages/react-ui/storybook/stories/common/Dialog.stories.js @@ -51,7 +51,7 @@ const options = { }; export default options; -const Template = ({ content, ...args }) => { +const Template = ({ content = , ...args }) => { const [open, setOpen] = React.useState(false); const handleClickOpen = () => { @@ -116,24 +116,21 @@ const FormContent = () => ( ); export const Default = Template.bind({}); -Default.args = { content: }; export const Form = Template.bind({}); Form.args = { content: }; export const DisableEscapeKeyDown = Template.bind({}); -DisableEscapeKeyDown.args = { content: , disableEscapeKeyDown: true }; +DisableEscapeKeyDown.args = { disableEscapeKeyDown: true }; export const SlideTransition = Template.bind({}); SlideTransition.args = { - content: , TransitionComponent: Slide, TransitionProps: { direction: 'up', timeout: 300 } }; export const FullScren = Template.bind({}); FullScren.args = { - content: , fullScreen: true, TransitionComponent: Slide, TransitionProps: { direction: 'up', timeout: 300 }