-
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.
* docs : README.md 파일 수정 * docs : README.md 파일 수정 * docs : README.md 파일 수정 * feat : storybook 적용 * fix : storybook 오류 수정 * docs : README.md 파일 수정
- Loading branch information
Showing
12 changed files
with
152 additions
and
130 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
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,21 @@ | ||
import type { StoryObj } from '@storybook/react' | ||
import Access from './Access' | ||
|
||
const meta = { | ||
title: 'Access', | ||
component: Access, | ||
tags: ['autodocs'], | ||
} | ||
|
||
export default meta | ||
|
||
type Story = StoryObj<typeof meta> | ||
|
||
export const Default: Story = { | ||
args: { | ||
leftButton: '왼쪽 버튼', | ||
rightButton: '오른쪽 버튼', | ||
onLeftButton: () => {}, | ||
onRightButton: () => {}, | ||
}, | ||
} |
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,22 @@ | ||
import type { StoryObj } from '@storybook/react' | ||
import Broadcast from './Broadcast' | ||
|
||
const meta = { | ||
title: 'Broadcast', | ||
component: Broadcast, | ||
tags: ['autodocs'], | ||
} | ||
|
||
export default meta | ||
|
||
type Story = StoryObj<typeof meta> | ||
|
||
export const Default: Story = { | ||
args: { | ||
thumbnail: 'https://github.com/boostcampwm2023/web07-GBS/assets/119842443/fe492d6e-a180-49c4-82d6-b0a8b0c1295a', | ||
title: 'JMH의 방송', | ||
nickname: 'JMH', | ||
viewer: 1, | ||
index: 1, | ||
}, | ||
} |
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,20 @@ | ||
import type { StoryObj } from '@storybook/react' | ||
import Chatting from './Chatting' | ||
|
||
const meta = { | ||
title: 'Chatting', | ||
component: Chatting, | ||
tags: ['autodocs'], | ||
} | ||
|
||
export default meta | ||
|
||
type Story = StoryObj<typeof meta> | ||
|
||
export const Default: Story = { | ||
args: { | ||
nickname: 'JMH', | ||
message: '테스트 입니다.', | ||
onNickname: () => {}, | ||
}, | ||
} |
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,19 @@ | ||
import type { StoryObj } from '@storybook/react' | ||
import EmptyList from './EmptyList' | ||
import { ThemeFlag } from '@/types/theme' | ||
|
||
const meta = { | ||
title: 'EmptyList', | ||
component: EmptyList, | ||
tags: ['autodocs'], | ||
} | ||
|
||
export default meta | ||
|
||
type Story = StoryObj<typeof meta> | ||
|
||
export const Default: Story = { | ||
args: { | ||
currentTheme: ThemeFlag.light, | ||
}, | ||
} |
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,20 @@ | ||
import type { StoryObj } from '@storybook/react' | ||
import Logo from './Logo' | ||
import { ThemeFlag } from '@/types/theme' | ||
|
||
const meta = { | ||
title: 'Logo', | ||
component: Logo, | ||
tags: ['autodocs'], | ||
} | ||
|
||
export default meta | ||
|
||
type Story = StoryObj<typeof meta> | ||
|
||
export const Default: Story = { | ||
args: { | ||
logo: 'wide', | ||
currentTheme: ThemeFlag.light, | ||
}, | ||
} |
21 changes: 21 additions & 0 deletions
21
client/src/components/Modal/ConfirmModal/ConfirmModal.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,21 @@ | ||
import type { StoryObj } from '@storybook/react' | ||
import ConfirmModal from './ConfirmModal' | ||
import { ThemeFlag } from '@/types/theme' | ||
|
||
const meta = { | ||
title: 'Modal/Confirm', | ||
component: ConfirmModal, | ||
tags: ['autodocs'], | ||
} | ||
|
||
export default meta | ||
|
||
type Story = StoryObj<typeof meta> | ||
|
||
export const Default: Story = { | ||
args: { | ||
text: '테스트 입니다.', | ||
onConfrim: () => {}, | ||
currentTheme: ThemeFlag.light, | ||
}, | ||
} |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.