Skip to content

Commit 2180322

Browse files
committed
Fix stories
1 parent 12fe3d8 commit 2180322

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

site/src/modules/notifications/NotificationsInbox/InboxItem.stories.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@ type Story = StoryObj<typeof InboxItem>;
2020

2121
export const Read: Story = {
2222
args: {
23-
notification: MockNotification,
23+
notification: {
24+
...MockNotification,
25+
read_status: "read",
26+
},
2427
},
2528
};
2629

site/src/modules/notifications/NotificationsInbox/InboxPopover.stories.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const meta: Meta<typeof InboxPopover> = {
1111
},
1212
render: (args) => {
1313
return (
14-
<div className="w-full max-w-screen-xl p-6">
14+
<div className="w-full max-w-screen-xl p-6 h-[720px]">
1515
<header className="flex justify-end">
1616
<InboxPopover {...args} />
1717
</header>
@@ -25,7 +25,6 @@ type Story = StoryObj<typeof InboxPopover>;
2525

2626
export const Default: Story = {
2727
args: {
28-
defaultOpen: false,
2928
unreadCount: 2,
3029
notifications: MockNotifications.slice(0, 3),
3130
},

site/src/modules/notifications/NotificationsInbox/NotificationsInbox.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const meta: Meta<typeof NotificationsInbox> = {
99
component: NotificationsInbox,
1010
render: (args) => {
1111
return (
12-
<div className="w-full max-w-screen-xl p-6">
12+
<div className="w-full max-w-screen-xl p-6 h-[720px]">
1313
<header className="flex justify-end">
1414
<NotificationsInbox {...args} />
1515
</header>

0 commit comments

Comments
 (0)