Skip to content

Commit

Permalink
feat: remove onClose from dialog title on storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
HyejinYang committed Apr 15, 2024
1 parent 573b39f commit 6eadc6d
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export const ActionModal: Story = {
</>
}
>
<DialogTitle title="Title area" onClose={close} />
<DialogTitle title="Title area" />
<DialogContent>
Lorem Ipsum is simply dummy text of the a printing and typesetting
industry
Expand All @@ -114,6 +114,10 @@ export const NonModal: Story = {
setIsOpen(true);
}

function close() {
setIsOpen(false);
}

return (
<>
<Box sx={{ display: "flex", gap: "8px" }}>
Expand Down Expand Up @@ -146,7 +150,7 @@ export const NonModal: Story = {
</>
}
>
<DialogTitle title="Title area" onClose={close} />
<DialogTitle title="Title area" />
<DialogContent>
Lorem Ipsum is simply dummy text of the a printing and typesetting
industry
Expand Down

0 comments on commit 6eadc6d

Please sign in to comment.