Refactor: 스토리북 preview 파일 변경에 따른 AdminLayout 스토리북 수정

This commit is contained in:
정현조 2024-09-09 15:04:48 +09:00
parent 731ac9dcba
commit 943b443080

View File

@ -1,7 +1,6 @@
import '@/index.css'; import '@/index.css';
import { Meta, StoryObj } from '@storybook/react'; import { Meta, StoryObj } from '@storybook/react';
import AdminLayout from './index'; import AdminLayout from './index';
import { BrowserRouter as Router } from 'react-router-dom';
import { Workspace } from '@/types'; import { Workspace } from '@/types';
const meta: Meta<typeof AdminLayout> = { const meta: Meta<typeof AdminLayout> = {
@ -36,9 +35,5 @@ const workspace: Workspace = {
}; };
export const Default: Story = { export const Default: Story = {
render: () => ( render: () => <AdminLayout workspace={workspace} />,
<Router>
<AdminLayout workspace={workspace} />
</Router>
),
}; };