Skip to content

Commit 7ac6e78

Browse files
committed
Refactor EmptyState stories
1 parent fff8f08 commit 7ac6e78

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed
Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,21 @@
1+
import Button from "@mui/material/Button";
12
import { EmptyState } from "./EmptyState";
23
import type { Meta, StoryObj } from "@storybook/react";
34

45
const meta: Meta<typeof EmptyState> = {
56
title: "components/EmptyState",
67
component: EmptyState,
78
args: {
8-
message: "Hello world",
9+
message: "Create your first workspace",
910
},
1011
};
1112

1213
export default meta;
1314
type Story = StoryObj<typeof EmptyState>;
1415

15-
export const Example: Story = {};
16-
17-
export const WithDescription: Story = {
18-
args: {
19-
description: "Friendly greeting",
20-
},
21-
};
22-
23-
export const WithCTA: Story = {
16+
export const Example: Story = {
2417
args: {
25-
cta: <button title="Click me" />,
18+
description: "It is easy, just click the button below",
19+
cta: <Button>Create workspace</Button>,
2620
},
2721
};

0 commit comments

Comments
 (0)