Skip to content

Commit

Permalink
feat: BookInfoCard story 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
gxxrxn committed Dec 19, 2023
1 parent 6f7ca1c commit 48ea2fa
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .storybook/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import '@/styles/global.css';
import Layout from '../src/v1/layout/Layout';
import ToastProvider from '../src/v1/base/Toast/ToastProvider';

import ReactQueryProvider from '../src/components/ReactQueryProvider';

const preview: Preview = {
parameters: {
actions: { argTypesRegex: '^on[A-Z].*' },
Expand All @@ -22,11 +24,13 @@ const preview: Preview = {
},
decorators: [
Story => (
<ToastProvider>
<Layout>
<Story />
</Layout>
</ToastProvider>
<ReactQueryProvider>
<ToastProvider>
<Layout>
<Story />
</Layout>
</ToastProvider>
</ReactQueryProvider>
),
],
};
Expand Down
20 changes: 20 additions & 0 deletions src/stories/bookGroup/BookInfoCard.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { Meta, StoryObj } from '@storybook/react';
import BookInfoCard from '@/v1/bookGroup/BookInfoCard';

const meta: Meta<typeof BookInfoCard> = {
title: 'bookGroup/BookInfoCard',
component: BookInfoCard,
tags: ['autodocs'],
};

export default meta;

type Story = StoryObj<typeof BookInfoCard>;

export const Default: Story = {
args: { bookId: 23 },
};

export const Removable: Story = {
args: { bookId: 23, removable: true },
};

0 comments on commit 48ea2fa

Please sign in to comment.