Skip to content

Commit 459deb7

Browse files
Update storybook to 9
1 parent e727643 commit 459deb7

6 files changed

Lines changed: 1973 additions & 1808 deletions

File tree

.storybook/main.ts

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@ const config: StorybookConfig = {
55

66
addons: [
77
"@storybook/addon-onboarding",
8-
"@storybook/addon-essentials",
98
"@chromatic-com/storybook",
10-
"@storybook/addon-interactions",
9+
"@storybook/addon-docs"
1110
],
1211

1312
framework: {
@@ -48,13 +47,11 @@ const config: StorybookConfig = {
4847
return config;
4948
},
5049

51-
docs: {
52-
autodocs: true
53-
},
50+
docs: {},
5451

5552
typescript: {
56-
reactDocgen: "react-docgen-typescript"
57-
}
53+
reactDocgen: "react-docgen-typescript",
54+
},
5855
};
5956

6057
export default config;

.storybook/preview.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Preview } from "@storybook/react";
1+
import type { Preview } from "@storybook/nextjs";
22

33
const preview: Preview = {
44
parameters: {
@@ -10,6 +10,8 @@ const preview: Preview = {
1010
},
1111
},
1212
},
13+
14+
tags: ["autodocs"]
1315
};
1416

1517
export default preview;

components/TimeHistory/TimeHistory.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Meta, StoryObj } from "@storybook/react";
1+
import type { Meta, StoryObj } from "@storybook/nextjs";
22

33
import TimeHistory from "./TimeHistory";
44
import {

components/TimeSpanBar/TimeSpanBar.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Meta, StoryObj } from "@storybook/react";
1+
import type { Meta, StoryObj } from "@storybook/nextjs";
22

33
import { TimeSpanBar } from "./TimeSpanBar";
44
import { LEONID_BREZHNEV_LIFE_BAR } from "../../utils/mocks/TimeSpanBar.mock";

0 commit comments

Comments
 (0)