Skip to content

Commit

Permalink
test: DashboardLayout 스토리 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
lurgi committed Oct 7, 2024
1 parent 790165b commit 2faf3ae
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/pages/DashBoardList/DashboardList.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const meta: Meta<typeof DashboardList> = {
location: {
pathParams: { dashboardId: '1' },
},
routing: { path: '/dashboardId/:dashboardId' },
routing: { path: '/dashboardId' },
}),
},
tags: ['autodocs'],
Expand Down
23 changes: 23 additions & 0 deletions frontend/src/pages/DashboardLayout/DashboardLayout.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { reactRouterParameters, withRouter } from 'storybook-addon-remix-react-router';
import { Meta, StoryObj } from '@storybook/react';
import DashboardLayout from '.';

const meta: Meta<typeof DashboardLayout> = {
title: 'Pages/DashboardLayout',
component: DashboardLayout,
decorators: [withRouter],
parameters: {
layout: 'fullscreen',
reactRouter: reactRouterParameters({
location: {
pathParams: { dashboardId: '1' },
},
routing: { path: '/dashboard' },
}),
},
};

export default meta;
type Story = StoryObj<typeof DashboardLayout>;

export const Default: Story = {};

0 comments on commit 2faf3ae

Please sign in to comment.