diff --git a/frontend/src/components/PairRoom/GuideModal/GuideModal.stories.tsx b/frontend/src/components/PairRoom/GuideModal/GuideModal.stories.tsx new file mode 100644 index 00000000..adb8a4f0 --- /dev/null +++ b/frontend/src/components/PairRoom/GuideModal/GuideModal.stories.tsx @@ -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; + +export default meta; + +type Story = StoryObj; + +export const Default: Story = { + args: { + isOpen: true, + accessCode: ACCESS_CODE, + }, +}; diff --git a/frontend/src/components/PairRoom/PairListCard/CompleteRoomButton/CompleteRoomButton.stories.tsx b/frontend/src/components/PairRoom/PairListCard/CompleteRoomButton/CompleteRoomButton.stories.tsx new file mode 100644 index 00000000..d00495f2 --- /dev/null +++ b/frontend/src/components/PairRoom/PairListCard/CompleteRoomButton/CompleteRoomButton.stories.tsx @@ -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 ; + }, + ], + argTypes: { + isOpen: { + control: 'boolean', + }, + }, +} satisfies Meta; + +export default meta; + +type Story = StoryObj; + +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 ; + }, + ], + args: { + isOpen: true, + }, +}; diff --git a/frontend/src/components/PairRoom/PairListCard/CompleteRoomButton/CompleteRoomButton.styles.ts b/frontend/src/components/PairRoom/PairListCard/CompleteRoomButton/CompleteRoomButton.styles.ts index 5d0d5d0d..c64e60c5 100644 --- a/frontend/src/components/PairRoom/PairListCard/CompleteRoomButton/CompleteRoomButton.styles.ts +++ b/frontend/src/components/PairRoom/PairListCard/CompleteRoomButton/CompleteRoomButton.styles.ts @@ -17,8 +17,8 @@ export const Layout = styled.button<{ disabled: boolean }>` margin-top: auto; border-radius: 0 0 2rem 2rem; - background-color: ${({ theme, disabled }) => (disabled ? theme.color.black[100] : theme.color.danger[200])}; - color: ${({ theme, disabled }) => (disabled ? theme.color.black[400] : theme.color.danger[600])}; + background-color: ${({ theme, disabled }) => (disabled ? theme.color.black[100] : theme.color.danger[100])}; + color: ${({ theme, disabled }) => (disabled ? theme.color.black[400] : theme.color.danger[500])}; font-size: ${({ theme }) => theme.fontSize.base}; text-overflow: ellipsis; white-space: nowrap; diff --git a/frontend/src/components/Retrospect/Textarea/Textarea.stories.tsx b/frontend/src/components/Retrospect/Textarea/Textarea.stories.tsx new file mode 100644 index 00000000..64c41d43 --- /dev/null +++ b/frontend/src/components/Retrospect/Textarea/Textarea.stories.tsx @@ -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; + +export default meta; + +type Story = StoryObj; + +export const Default: Story = {}; diff --git a/frontend/src/pages/CompletedPairRoom/CompletedPairRoom.styles.ts b/frontend/src/pages/CompletedPairRoom/CompletedPairRoom.styles.ts index 6814dc3c..0567fb85 100644 --- a/frontend/src/pages/CompletedPairRoom/CompletedPairRoom.styles.ts +++ b/frontend/src/pages/CompletedPairRoom/CompletedPairRoom.styles.ts @@ -53,7 +53,7 @@ export const PairInfoWrapper = styled.div` padding: 1.2rem 1.5rem; border-radius: 1rem; - background-color: ${({ theme }) => theme.color.black[300]}; + background-color: ${({ theme }) => theme.color.black[200]}; color: ${({ theme }) => theme.color.black[700]}; font-size: ${({ theme }) => theme.fontSize.base}; font-weight: ${({ theme }) => theme.fontWeight.medium};