Skip to content

Commit

Permalink
feat: ThemeProvider storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
jaeml06 committed Jul 30, 2024
1 parent 5189be8 commit ef86d36
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions frontend/.storybook/preview.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import type { Preview } from '@storybook/react';
import React from 'react';
import reset from '../src/common/reset.style';
import { Global } from '@emotion/react';
import { Global, ThemeProvider } from '@emotion/react';
import { theme } from '../src/common/theme/theme.style';

const preview: Preview = {
parameters: {
Expand All @@ -15,8 +16,10 @@ const preview: Preview = {
decorators: [
(Story) => (
<div style={{ margin: '3em' }}>
<Global styles={reset} />
<Story />
<ThemeProvider theme={theme}>
<Global styles={reset} />
<Story />
</ThemeProvider>
</div>
),
],
Expand Down

0 comments on commit ef86d36

Please sign in to comment.