-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #861 from NUTFes/feat/kobayashi/CreatingstoriesFil…
…e/auth-860 既存コンポーネントをStorybook上に表示する(/auth)
- Loading branch information
Showing
3 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 = {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 = {}; |