-
Notifications
You must be signed in to change notification settings - Fork 3
Feat/131/design gatherings #136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
4704d2f
779f682
b5fd829
34860bd
a39c327
d351bbf
176f5d1
c9e7071
deedc4d
129a15b
93b3bb5
bf84f6c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,6 +1,6 @@ | ||||||||||||||||||||||||||||
| import type { Meta, StoryObj } from '@storybook/react'; | ||||||||||||||||||||||||||||
| import { QueryClient, QueryClientProvider } from '@tanstack/react-query'; | ||||||||||||||||||||||||||||
| import GatheringCardCarousel from './gathering-card-carousel'; | ||||||||||||||||||||||||||||
| import CrewGatheringList from './crew-gathering-list'; | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| // ๋๋ฏธ ๋ฐ์ดํฐ ์ ์ | ||||||||||||||||||||||||||||
| const mockGatheringData = [ | ||||||||||||||||||||||||||||
|
|
@@ -37,25 +37,41 @@ const mockGatheringData = [ | |||||||||||||||||||||||||||
| 'https://images.unsplash.com/photo-1516978101789-720eacb59e79?w=500&auto=format&fit=crop&q=60&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8NjV8fGNhdHxlbnwwfHwwfHx8Mg%3D%3D', | ||||||||||||||||||||||||||||
| liked: true, | ||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||
| id: 4, | ||||||||||||||||||||||||||||
| title: '๋ฌ๋ ๋ชจ์', | ||||||||||||||||||||||||||||
| dateTime: '2024-11-15T09:00', | ||||||||||||||||||||||||||||
| location: '์์ธ ์๋ฑํฌ๊ตฌ ์ฌ์๋๋ก 330', | ||||||||||||||||||||||||||||
| currentCount: 10, | ||||||||||||||||||||||||||||
| totalCount: 20, | ||||||||||||||||||||||||||||
| imageUrl: | ||||||||||||||||||||||||||||
| 'https://images.unsplash.com/photo-1516978101789-720eacb59e79?w=500&auto=format&fit=crop&q=60&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8NjV8fGNhdHxlbnwwfHwwfHx8Mg%3D%3D', | ||||||||||||||||||||||||||||
| liked: true, | ||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||
| ]; | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| const queryClient = new QueryClient(); | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| const meta: Meta<typeof GatheringCardCarousel> = { | ||||||||||||||||||||||||||||
| title: 'Components/GatheringCardCarousel', | ||||||||||||||||||||||||||||
| component: GatheringCardCarousel, | ||||||||||||||||||||||||||||
| const meta: Meta<typeof CrewGatheringList> = { | ||||||||||||||||||||||||||||
| title: 'Components/CrewGatheringList', | ||||||||||||||||||||||||||||
| component: CrewGatheringList, | ||||||||||||||||||||||||||||
| parameters: { | ||||||||||||||||||||||||||||
| layout: 'fullscreen', | ||||||||||||||||||||||||||||
| layout: 'fulled', // layout ๋ณ๊ฒฝ | ||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||
|
Comment on lines
+55
to
60
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ๋ ์ด์์ ํ๋ผ๋ฏธํฐ์ ์คํ๋ฅผ ์์ ํด์ฃผ์ธ์. Storybook์ layout ํ๋ผ๋ฏธํฐ์ ์คํ๊ฐ ์์ต๋๋ค. 'fulled'๋ ์ ํจํ์ง ์์ ๊ฐ์ ๋๋ค. parameters: {
- layout: 'fulled',
+ layout: 'fullscreen',
},๐ Committable suggestion
Suggested change
|
||||||||||||||||||||||||||||
| tags: ['autodocs'], | ||||||||||||||||||||||||||||
| decorators: [ | ||||||||||||||||||||||||||||
| (Story) => ( | ||||||||||||||||||||||||||||
| <QueryClientProvider client={queryClient}> | ||||||||||||||||||||||||||||
| <Story /> | ||||||||||||||||||||||||||||
| {/* ๋ถ๋ชจ ์ปจํ ์ด๋ ์ถ๊ฐ */} | ||||||||||||||||||||||||||||
| <div className="flex w-full justify-center bg-gray-100"> | ||||||||||||||||||||||||||||
| <div className="relative -mx-6 w-[calc(100%+3rem)]"> | ||||||||||||||||||||||||||||
| <Story /> | ||||||||||||||||||||||||||||
| </div> | ||||||||||||||||||||||||||||
| </div> | ||||||||||||||||||||||||||||
| </QueryClientProvider> | ||||||||||||||||||||||||||||
| ), | ||||||||||||||||||||||||||||
| ], | ||||||||||||||||||||||||||||
| } satisfies Meta<typeof GatheringCardCarousel>; | ||||||||||||||||||||||||||||
| } satisfies Meta<typeof CrewGatheringList>; | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| export default meta; | ||||||||||||||||||||||||||||
| type Story = StoryObj<typeof meta>; | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์ค๋ณต๋ ๋ชจ์ ๋ฐ์ดํฐ๋ฅผ ์์ ํด์ฃผ์ธ์.
์๋ก ์ถ๊ฐ๋ ๋ชจ์ ๋ฐ์ดํฐ(id: 4)๊ฐ ๊ธฐ์กด ๋ฐ์ดํฐ(id: 3)์ title, dateTime, location ๋ฑ์ด ๋์ผํฉ๋๋ค. ํ ์คํธ ๋ฐ์ดํฐ์ ์ ํ์ฑ์ ์ํด ๋ค์๊ณผ ๊ฐ์ด ์์ ์ด ํ์ํฉ๋๋ค:
{ id: 4, - title: '๋ฌ๋ ๋ชจ์', - dateTime: '2024-11-15T09:00', - location: '์์ธ ์๋ฑํฌ๊ตฌ ์ฌ์๋๋ก 330', + title: '์ถ๊ตฌ ๋ชจ์', + dateTime: '2024-12-20T14:00', + location: '์์ธ ๋งํฌ๊ตฌ ์์๋ ์๋์ปต๊ณต์', currentCount: 10, totalCount: 20, imageUrl: 'https://images.unsplash.com/photo-1516978101789-720eacb59e79?w=500&auto=format&fit=crop&q=60&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8NjV8fGNhdHxlbnwwfHwwfHx8Mg%3D%3D', liked: true, }๐ Committable suggestion