Skip to content

Commit

Permalink
Merge pull request #861 from NUTFes/feat/kobayashi/CreatingstoriesFil…
Browse files Browse the repository at this point in the history
…e/auth-860

既存コンポーネントをStorybook上に表示する(/auth)
  • Loading branch information
Kubosaka authored Jul 27, 2024
2 parents 4cf8dc4 + 573e9a6 commit e3178f9
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 0 deletions.
2 changes: 2 additions & 0 deletions view/next-project/src/components/auth/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export { default as SignInView } from './SignInView';
export { default as SignUpView } from './SignUpView';
24 changes: 24 additions & 0 deletions view/next-project/src/stories/auth/SignInView.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import { Meta, StoryFn } from '@storybook/react';
import { RecoilRoot } from 'recoil';
import { SignInView } from '@components/auth';

const meta: Meta<typeof SignInView> = {
title: 'FinanSu/auth/SignInView',
component: SignInView,
decorators: [
(Story) => (
<RecoilRoot>
<Story />
</RecoilRoot>
),
],
tags: ['autodocs'],
argTypes: {},
};

export default meta;

const Template: StoryFn<typeof SignInView> = () => <SignInView />;

export const Primary = Template.bind({});
Primary.args = {};
24 changes: 24 additions & 0 deletions view/next-project/src/stories/auth/SignUpView.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import { Meta, StoryFn } from '@storybook/react';
import { RecoilRoot } from 'recoil';
import { SignUpView } from '@components/auth';

const meta: Meta<typeof SignUpView> = {
title: 'FinanSu/auth/SignUpView',
component: SignUpView,
decorators: [
(Story) => (
<RecoilRoot>
<Story />
</RecoilRoot>
),
],
tags: ['autodocs'],
argTypes: {},
};

export default meta;

const Template: StoryFn<typeof SignUpView> = () => <SignUpView />;

export const Primary = Template.bind({});
Primary.args = {};

0 comments on commit e3178f9

Please sign in to comment.