From 0d25462fe0ce3f6fc9793cba99dc29d10274bdf2 Mon Sep 17 00:00:00 2001 From: jlsnow301 Date: Fri, 22 Nov 2024 15:18:15 -0800 Subject: [PATCH] initial commit --- .storybook/preview.ts | 2 ++ stories/Input.stories.tsx | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.storybook/preview.ts b/.storybook/preview.ts index c2d8677..e9fb00e 100644 --- a/.storybook/preview.ts +++ b/.storybook/preview.ts @@ -2,6 +2,7 @@ import type { Preview } from '@storybook/react'; import 'tgui-styles'; import '../stories/assets/fonts.css'; import '../stories/assets/all.min.css'; +import { withConsole } from '@storybook/addon-console'; const preview: Preview = { parameters: { @@ -16,6 +17,7 @@ const preview: Preview = { }, }, }, + decorators: [(storyFn, context) => withConsole()(storyFn)(context)], }; export default preview; diff --git a/stories/Input.stories.tsx b/stories/Input.stories.tsx index 4a97d83..7aa3f12 100644 --- a/stories/Input.stories.tsx +++ b/stories/Input.stories.tsx @@ -1,4 +1,3 @@ -import { withConsole } from '@storybook/addon-console'; import type { Meta, StoryObj } from '@storybook/react'; import type { ComponentProps } from 'react'; import { Input } from '../lib/components/Input'; @@ -8,7 +7,6 @@ type StoryProps = ComponentProps; export default { component: Input, title: 'Components/Input', - decorators: [(storyFn, context) => withConsole()(storyFn)(context)], } satisfies Meta; type Story = StoryObj;