-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
108 additions
and
1 deletion.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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,12 @@ | ||
import Flex from '@/common/component/Flex/Flex'; | ||
import Heading from '@/common/component/Heading/Heading'; | ||
|
||
const InfoFormPage = () => { | ||
return ( | ||
<Flex> | ||
<Heading>회원가입</Heading> | ||
</Flex> | ||
); | ||
}; | ||
|
||
export default InfoFormPage; |
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,42 @@ | ||
import TermArea from '@/page/signIn/index/component/TermArea/TermArea'; | ||
import type { Meta, StoryObj } from '@storybook/react'; | ||
|
||
import { useState } from 'react'; | ||
|
||
const meta = { | ||
title: 'page/signIn/TermArea', | ||
component: TermArea, | ||
parameters: { | ||
layout: 'centered', | ||
}, | ||
decorators: [ | ||
(Story) => ( | ||
<div css={{ width: '40rem' }}> | ||
<Story /> | ||
</div> | ||
), | ||
], | ||
args: { | ||
term: '이용 약관', | ||
isChecked: false, | ||
}, | ||
} satisfies Meta<typeof TermArea>; | ||
|
||
export default meta; | ||
type Story = StoryObj<typeof meta>; | ||
|
||
export const Default: Story = { | ||
render: (args) => { | ||
const [isClicked, setIsClicked] = useState(false); | ||
|
||
const handleCheck = () => { | ||
setIsClicked((prev) => !prev); | ||
}; | ||
|
||
return ( | ||
<TermArea {...args} onClick={handleCheck} isChecked={isClicked} isRequired> | ||
이용약관 | ||
</TermArea> | ||
); | ||
}, | ||
}; |
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,15 @@ | ||
import TermPage from '@/page/signIn/index/TermPage'; | ||
import type { Meta, StoryObj } from '@storybook/react'; | ||
|
||
const meta = { | ||
title: 'page/signIn/TermPage', | ||
component: TermPage, | ||
parameters: { | ||
layout: 'centered', | ||
}, | ||
} satisfies Meta<typeof TermPage>; | ||
|
||
export default meta; | ||
type Story = StoryObj<typeof meta>; | ||
|
||
export const Default: Story = {}; |
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,31 @@ | ||
import TermsAgreeButton from '@/page/signIn/index/component/TermsAgreeButton/TermsAgreeButton'; | ||
import type { Meta, StoryObj } from '@storybook/react'; | ||
|
||
import { useState } from 'react'; | ||
|
||
const meta = { | ||
title: 'page/signIn/TermsAgreeButton', | ||
component: TermsAgreeButton, | ||
parameters: { | ||
layout: 'centered', | ||
}, | ||
decorators: [ | ||
(Story) => ( | ||
<div css={{ width: '40rem' }}> | ||
<Story /> | ||
</div> | ||
), | ||
], | ||
args: {}, | ||
} satisfies Meta<typeof TermsAgreeButton>; | ||
|
||
export default meta; | ||
type Story = StoryObj<typeof meta>; | ||
|
||
export const Default: Story = { | ||
render: () => { | ||
const [isClicked, setIsClicked] = useState(false); | ||
|
||
return <TermsAgreeButton onClick={() => setIsClicked((prev) => !prev)} isClicked={isClicked} />; | ||
}, | ||
}; |