Skip to content

Commit

Permalink
[#554] 스토리북 preview decorator에서 Layout 제거 (#555)
Browse files Browse the repository at this point in the history
* feat: storybook preview에서 Layout 제거
  • Loading branch information
gxxrxn committed Jun 17, 2024
1 parent bdfa458 commit 495321e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
5 changes: 1 addition & 4 deletions .storybook/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,16 +72,13 @@ const preview: Preview = {
nextjs: {
appDirectory: true,
},
layout: 'fullscreen',
},
loaders: [mswLoader],
decorators: [
Story => (
<QueryClientProvider client={queryClient}>
<ToastProvider>
<Layout>
<Story />
</Layout>
<Story />
</ToastProvider>
</QueryClientProvider>
),
Expand Down
17 changes: 17 additions & 0 deletions src/stories/meta.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { Meta } from '@storybook/react';
import Layout from '@/v1/layout/Layout';

export const appLayoutMeta: Meta = {
parameters: {
layout: 'fullscreen',
},
decorators: [
Story => (
<div className="m-auto max-w-[43rem] bg-white">
<Layout>
<Story />
</Layout>
</div>
),
],
};

0 comments on commit 495321e

Please sign in to comment.