Skip to content

Commit 6c9c129

Browse files
authored
Reorganize Storybook (#1087)
1 parent 5141d6f commit 6c9c129

16 files changed

+16
-16
lines changed

site/src/components/Button/LoadingButton.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import React from "react"
33
import { LoadingButton, LoadingButtonProps } from "./LoadingButton"
44

55
export default {
6-
title: "Button/LoadingButton",
6+
title: "components/LoadingButton",
77
component: LoadingButton,
88
argTypes: {
99
loading: { control: { type: "boolean" } },

site/src/components/CodeBlock/index.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Started container user
99
Using user 'coder' with shell '/bin/bash'`.split("\n")
1010

1111
export default {
12-
title: "CodeBlock/CodeBlock",
12+
title: "components/CodeBlock",
1313
component: CodeBlock,
1414
argTypes: {
1515
lines: { control: "text", defaultValue: sampleLines },

site/src/components/CodeExample/CodeExample.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { CodeExample, CodeExampleProps } from "./CodeExample"
55
const sampleCode = `echo "Hello, world"`
66

77
export default {
8-
title: "CodeBlock/CodeExample",
8+
title: "components/CodeExample",
99
component: CodeExample,
1010
argTypes: {
1111
code: { control: "string", defaultValue: sampleCode },

site/src/components/Form/FormCloseButton.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import React from "react"
33
import { FormCloseButton, FormCloseButtonProps } from "./FormCloseButton"
44

55
export default {
6-
title: "Form/FormCloseButton",
6+
title: "components/FormCloseButton",
77
component: FormCloseButton,
88
argTypes: {
99
onClose: { action: "onClose" },

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import React from "react"
44
import { UserDropdown, UserDropdownProps } from "."
55

66
export default {
7-
title: "Page/UserDropdown",
7+
title: "components/UserDropdown",
88
component: UserDropdown,
99
argTypes: {
1010
onSignOut: { action: "Sign Out" },

site/src/components/Section/SectionView.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import React from "react"
55
import { Section, SectionProps } from "./"
66

77
export default {
8-
title: "Page/Section",
8+
title: "components/Section",
99
component: Section,
1010
argTypes: {
1111
title: { type: "string" },

site/src/components/SignIn/CliAuthToken.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import React from "react"
33
import { CliAuthToken, CliAuthTokenProps } from "./CliAuthToken"
44

55
export default {
6-
title: "SignIn/CliAuthToken",
6+
title: "components/CliAuthToken",
77
component: CliAuthToken,
88
argTypes: {
99
sessionToken: { control: "text", defaultValue: "some-session-token" },

site/src/components/SignIn/SignInForm.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import React from "react"
33
import { SignInForm, SignInFormProps } from "./SignInForm"
44

55
export default {
6-
title: "SignIn/SignInForm",
6+
title: "components/SignInForm",
77
component: SignInForm,
88
argTypes: {
99
isLoading: "boolean",

site/src/components/Snackbar/EnterpriseSnackbar.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import React from "react"
33
import { EnterpriseSnackbar, EnterpriseSnackbarProps } from "./EnterpriseSnackbar"
44

55
export default {
6-
title: "Snackbar/EnterpriseSnackbar",
6+
title: "components/EnterpriseSnackbar",
77
component: EnterpriseSnackbar,
88
}
99

site/src/components/Stack/Stack.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import React from "react"
44
import { Stack, StackProps } from "./Stack"
55

66
export default {
7-
title: "Components/Stack",
7+
title: "components/Stack",
88
component: Stack,
99
}
1010

0 commit comments

Comments
 (0)