-
Notifications
You must be signed in to change notification settings - Fork 3
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 #980 from woowacourse-teams/FE/dev
[FE] 🚀 테스트 서버 배포
- Loading branch information
Showing
7 changed files
with
102 additions
and
5 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
frontend/src/components/PairRoom/GuideModal/GuideModal.stories.tsx
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,27 @@ | ||
import type { Meta, StoryObj } from '@storybook/react'; | ||
|
||
import GuideModal from '@/components/PairRoom/GuideModal/GuideModal'; | ||
|
||
const ACCESS_CODE = 'CODUO'; | ||
|
||
const meta = { | ||
title: 'component/PairRoom/GuideModal', | ||
component: GuideModal, | ||
|
||
argTypes: { | ||
isOpen: { | ||
control: 'boolean', | ||
}, | ||
}, | ||
} satisfies Meta<typeof GuideModal>; | ||
|
||
export default meta; | ||
|
||
type Story = StoryObj<typeof GuideModal>; | ||
|
||
export const Default: Story = { | ||
args: { | ||
isOpen: true, | ||
accessCode: ACCESS_CODE, | ||
}, | ||
}; |
54 changes: 54 additions & 0 deletions
54
...nd/src/components/PairRoom/PairListCard/CompleteRoomButton/CompleteRoomButton.stories.tsx
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,54 @@ | ||
import type { Meta, StoryObj } from '@storybook/react'; | ||
|
||
import CompleteRoomButton from '@/components/PairRoom/PairListCard/CompleteRoomButton/CompleteRoomButton'; | ||
|
||
import useUserStore from '@/stores/userStore'; | ||
|
||
const USER_NAME = 'CODUO'; | ||
|
||
const meta = { | ||
title: 'component/PairRoom/PairListCard/CompleteRoomButton', | ||
component: CompleteRoomButton, | ||
decorators: [ | ||
(Story) => { | ||
const { setUser } = useUserStore.getState(); | ||
setUser(USER_NAME, 'SIGNED_IN'); | ||
|
||
return <Story />; | ||
}, | ||
], | ||
argTypes: { | ||
isOpen: { | ||
control: 'boolean', | ||
}, | ||
}, | ||
} satisfies Meta<typeof CompleteRoomButton>; | ||
|
||
export default meta; | ||
|
||
type Story = StoryObj<typeof CompleteRoomButton>; | ||
|
||
export const LoggedIn: Story = { | ||
args: { | ||
isOpen: true, | ||
}, | ||
}; | ||
|
||
export const ClosedLoggedIn: Story = { | ||
args: { | ||
isOpen: false, | ||
}, | ||
}; | ||
|
||
export const LoggedOut: Story = { | ||
decorators: [ | ||
(Story) => { | ||
const { resetUser } = useUserStore.getState(); | ||
resetUser(); | ||
return <Story />; | ||
}, | ||
], | ||
args: { | ||
isOpen: true, | ||
}, | ||
}; |
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
14 changes: 14 additions & 0 deletions
14
frontend/src/components/Retrospect/Textarea/Textarea.stories.tsx
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,14 @@ | ||
import type { Meta, StoryObj } from '@storybook/react'; | ||
|
||
import Textarea from '@/components/Retrospect/Textarea/Textarea'; | ||
|
||
const meta = { | ||
title: 'component/Retrospect/Textarea', | ||
component: Textarea, | ||
} satisfies Meta<typeof Textarea>; | ||
|
||
export default meta; | ||
|
||
type Story = StoryObj<typeof Textarea>; | ||
|
||
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
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