Skip to content

Commit 1cdc62b

Browse files
authored
chore: reorganize storybook (#10144)
1 parent 54648b9 commit 1cdc62b

File tree

72 files changed

+121
-83
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+121
-83
lines changed

site/src/components/Alert/ErrorAlert.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const mockError = mockApiError({
99
});
1010

1111
const meta: Meta<typeof ErrorAlert> = {
12-
title: "components/ErrorAlert",
12+
title: "components/Alert/ErrorAlert",
1313
component: ErrorAlert,
1414
args: {
1515
error: mockError,

site/src/components/Dashboard/Navbar/UserDropdown/UserDropdown.stories.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,6 @@ const meta: Meta<typeof UserDropdown> = {
1313
export default meta;
1414
type Story = StoryObj<typeof UserDropdown>;
1515

16-
export const Example: Story = {};
16+
const Example: Story = {};
17+
18+
export { Example as UserDropdown };

site/src/components/Dialogs/DeleteDialog/DeleteDialog.stories.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,6 @@ const meta: Meta<typeof DeleteDialog> = {
1818
export default meta;
1919
type Story = StoryObj<typeof DeleteDialog>;
2020

21-
export const Example: Story = {};
21+
const Example: Story = {};
22+
23+
export { Example as DeleteDialog };

site/src/components/EmptyState/EmptyState.stories.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,11 @@ const meta: Meta<typeof EmptyState> = {
1313
export default meta;
1414
type Story = StoryObj<typeof EmptyState>;
1515

16-
export const Example: Story = {
16+
const Example: Story = {
1717
args: {
1818
description: "It is easy, just click the button below",
1919
cta: <Button>Create workspace</Button>,
2020
},
2121
};
22+
23+
export { Example as EmptyState };

site/src/components/FullPageForm/FullPageForm.stories.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,11 @@ const meta: Meta<typeof FullPageForm> = {
2929
export default meta;
3030
type Story = StoryObj<typeof FullPageForm>;
3131

32-
export const Example: Story = {
32+
const Example: Story = {
3333
args: {
3434
title: "My Form",
3535
detail: "Lorem ipsum dolor",
3636
},
3737
};
38+
39+
export { Example as FullPageForm };

site/src/components/GroupAvatar/GroupAvatar.stories.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@ const meta: Meta<typeof GroupAvatar> = {
99
export default meta;
1010
type Story = StoryObj<typeof GroupAvatar>;
1111

12-
export const Example: Story = {
12+
const Example: Story = {
1313
args: {
1414
name: "My Group",
1515
avatarURL: "",
1616
},
1717
};
18+
19+
export { Example as GroupAvatar };

site/src/components/HelpTooltip/HelpTooltip.stories.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,6 @@ const meta: Meta<typeof HelpTooltip> = {
3333
export default meta;
3434
type Story = StoryObj<typeof HelpTooltip>;
3535

36-
export const Example: Story = {};
36+
const Example: Story = {};
37+
38+
export { Example as HelpTooltip };

site/src/components/Margins/Margins.stories.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const meta: Meta<typeof Margins> = {
99
export default meta;
1010
type Story = StoryObj<typeof Margins>;
1111

12-
export const Example: Story = {
12+
const Example: Story = {
1313
args: {
1414
children: (
1515
<div style={{ width: "100%", background: "black" }}>
@@ -18,3 +18,5 @@ export const Example: Story = {
1818
),
1919
},
2020
};
21+
22+
export { Example as Margins };

site/src/components/OverflowY/OverflowY.stories.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,6 @@ const meta: Meta<typeof OverflowY> = {
3131
export default meta;
3232

3333
type Story = StoryObj<typeof OverflowY>;
34-
export const Example: Story = {};
34+
const Example: Story = {};
35+
36+
export { Example as OverflowY };

site/src/components/PopoverContainer/PopoverContainer.stories.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,6 @@ const meta: Meta<typeof PopoverContainer> = {
2020
export default meta;
2121

2222
type Story = StoryObj<typeof PopoverContainer>;
23-
export const Example: Story = {};
23+
const Example: Story = {};
24+
25+
export { Example as PopoverContainer };

0 commit comments

Comments
 (0)