Skip to content

Commit 28ba2c9

Browse files
committed
Make title prop optional in DialogComponent and update ChatDialog story
1 parent 852e1c4 commit 28ba2c9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/components/Dialog/Dialog.stories.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const DialogComponent = ({
1919
reducePadding,
2020
}: {
2121
open?: boolean;
22-
title: string;
22+
title?: string;
2323
modal: boolean;
2424
showClose: boolean;
2525
forceMount?: boolean;
@@ -94,6 +94,7 @@ export const ModalDialog = {
9494

9595
export const ChatDialog = {
9696
args: {
97+
title: "",
9798
showClose: false,
9899
open: true,
99100
onOpenChange: () => {
@@ -103,6 +104,7 @@ export const ChatDialog = {
103104
},
104105
render: ({
105106
open,
107+
title,
106108
modal,
107109
showClose,
108110
forceMount,
@@ -124,6 +126,7 @@ export const ChatDialog = {
124126
<Link>Open dialog</Link>
125127
</Dialog.Trigger>
126128
<Dialog.Content
129+
title={title}
127130
showClose={showClose}
128131
forceMount={forceMount ? true : undefined}
129132
reducePadding={reducePadding}

0 commit comments

Comments
 (0)