Refactor: 스토리북 preview 파일 변경에 따른 AdminLayout 스토리북 수정
This commit is contained in:
parent
731ac9dcba
commit
943b443080
@ -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>
|
|
||||||
),
|
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user