From 17bceae60f45f4e4b4fe62aba565224f7d9ddc2c Mon Sep 17 00:00:00 2001 From: Katalina Okano Date: Sun, 4 Jul 2021 13:17:13 -0500 Subject: [PATCH] cleanup storybook --- packages/design-system/.storybook/main.js | 2 +- packages/design-system/.storybook/mocks/next_link.tsx | 8 -------- packages/design-system/{.storybook => }/Intro.stories.mdx | 0 3 files changed, 1 insertion(+), 9 deletions(-) delete mode 100644 packages/design-system/.storybook/mocks/next_link.tsx rename packages/design-system/{.storybook => }/Intro.stories.mdx (100%) diff --git a/packages/design-system/.storybook/main.js b/packages/design-system/.storybook/main.js index e90bb07..f83f7bd 100644 --- a/packages/design-system/.storybook/main.js +++ b/packages/design-system/.storybook/main.js @@ -1,9 +1,9 @@ module.exports = { stories: [ + '../*.stories.mdx', ...['atoms', 'molecules', 'organisms', 'templates'].map( (dir) => `../${dir}/**/*.stories.@(tsx|mdx)` ), - '*.stories.mdx', ], addons: ['@storybook/addon-links', '@storybook/addon-essentials'], reactOptions: { diff --git a/packages/design-system/.storybook/mocks/next_link.tsx b/packages/design-system/.storybook/mocks/next_link.tsx deleted file mode 100644 index 393ff9d..0000000 --- a/packages/design-system/.storybook/mocks/next_link.tsx +++ /dev/null @@ -1,8 +0,0 @@ -import * as React from 'react'; - -type Props = { - children: React.ReactNode; -}; -const Link = (props: Props) => <>{props.children}; - -export default Link; diff --git a/packages/design-system/.storybook/Intro.stories.mdx b/packages/design-system/Intro.stories.mdx similarity index 100% rename from packages/design-system/.storybook/Intro.stories.mdx rename to packages/design-system/Intro.stories.mdx