Skip to content

Commit 1ca99d2

Browse files
refactor(Colors.stories): move to @chakra-ui folder
1 parent 300be0c commit 1ca99d2

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.storybook/main.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ import TsconfigPathsPlugin from "tsconfig-paths-webpack-plugin"
1616
*/
1717

1818
const config: StorybookConfig = {
19-
stories: ["../src/components/**/*.stories.{ts,tsx}"],
19+
stories: [
20+
"../src/components/**/*.stories.{ts,tsx}",
21+
"../src/@chakra-ui/stories/*.stories.tsx",
22+
],
2023
addons: [
2124
"@storybook/addon-links",
2225
"@storybook/addon-essentials",

src/components/BaseStories/Colors.stories.tsx renamed to src/@chakra-ui/stories/Colors.stories.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import semanticTokens from "@/@chakra-ui/semanticTokens"
88

99
const semanticTokenColors = semanticTokens["colors"]
1010

11-
import Heading from "../Heading"
11+
import Heading from "@/components/Heading"
1212

1313
const meta = {
1414
title: "Design System/Colors",
@@ -178,7 +178,7 @@ const SemanticColorBlock = ({
178178
}
179179
size="20"
180180
bg={tokenName === nestedKey ? tokenName : `${tokenName}.${nestedKey}`}
181-
></Square>
181+
/>
182182
<Text>{nestedKey}</Text>
183183
</Flex>
184184
)

0 commit comments

Comments
 (0)