-
Notifications
You must be signed in to change notification settings - Fork 3
Fix/170/storybook build err #176
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
e9a6515
ddf4a66
307563b
d736ae9
a2ea0c7
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 | ||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -8,6 +8,15 @@ const meta: Meta = { | |||||||||||||||||||||||||||||||||||||
| title: 'layout/tabs', | ||||||||||||||||||||||||||||||||||||||
| component: Tabs, | ||||||||||||||||||||||||||||||||||||||
| tags: ['autodocs'], | ||||||||||||||||||||||||||||||||||||||
| parameters: { | ||||||||||||||||||||||||||||||||||||||
| docs: { | ||||||||||||||||||||||||||||||||||||||
| subtitle: '화면 최상단에 위치한 헤더', | ||||||||||||||||||||||||||||||||||||||
| description: { | ||||||||||||||||||||||||||||||||||||||
| component: | ||||||||||||||||||||||||||||||||||||||
| "'로고, 크루찾기, 나의크루, 나의약속, 로그인/마이페이지/로그아웃'으로 구성되어 있으며 해당페이지로 연결됩니다.", | ||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+11
to
+19
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. 컴포넌트 설명이 부적절합니다 현재 문서에서는 이 컴포넌트를 헤더로 설명하고 있으나, 실제로는 탭 컴포넌트입니다. 컴포넌트의 실제 기능과 일치하도록 설명을 수정해주세요. 다음과 같이 수정하는 것을 제안합니다: parameters: {
docs: {
- subtitle: '화면 최상단에 위치한 헤더',
+ subtitle: '페이지 내 콘텐츠를 구분하는 탭',
description: {
component:
- "'로고, 크루찾기, 나의크루, 나의약속, 로그인/마이페이지/로그아웃'으로 구성되어 있으며 해당페이지로 연결됩니다.",
+ "페이지 내에서 관련 콘텐츠를 구분하여 표시하는 탭 컴포넌트입니다. 사용자가 탭을 클릭하면 해당 콘텐츠로 전환됩니다.",
},
},
},📝 Committable suggestion
Suggested change
|
||||||||||||||||||||||||||||||||||||||
| argTypes: { | ||||||||||||||||||||||||||||||||||||||
| tabs: { | ||||||||||||||||||||||||||||||||||||||
| description: '탭 목록 데이터 배열', | ||||||||||||||||||||||||||||||||||||||
|
|
@@ -40,15 +49,41 @@ const Template: StoryFn<TabsProps> = function TabsStory({ activeTab, tabs, ...ar | |||||||||||||||||||||||||||||||||||||
| /> | ||||||||||||||||||||||||||||||||||||||
| ); | ||||||||||||||||||||||||||||||||||||||
| }; | ||||||||||||||||||||||||||||||||||||||
| export const MyCrewTabs = Template.bind({}); | ||||||||||||||||||||||||||||||||||||||
| MyCrewTabs.args = { | ||||||||||||||||||||||||||||||||||||||
| tabs: tabData.crewTabs, | ||||||||||||||||||||||||||||||||||||||
| activeTab: tabData.crewTabs[0].id, | ||||||||||||||||||||||||||||||||||||||
| }; | ||||||||||||||||||||||||||||||||||||||
| MyCrewTabs.parameters = { | ||||||||||||||||||||||||||||||||||||||
| docs: { | ||||||||||||||||||||||||||||||||||||||
| description: { | ||||||||||||||||||||||||||||||||||||||
| story: "'나의 크루' 페이지에서 사용되는 탭", | ||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||
| }; | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| export const AppointmentTabs = Template.bind({}); | ||||||||||||||||||||||||||||||||||||||
| AppointmentTabs.args = { | ||||||||||||||||||||||||||||||||||||||
| export const MyGatheringTabs = Template.bind({}); | ||||||||||||||||||||||||||||||||||||||
| MyGatheringTabs.args = { | ||||||||||||||||||||||||||||||||||||||
| tabs: tabData.appointmentTabs, | ||||||||||||||||||||||||||||||||||||||
| activeTab: tabData.appointmentTabs[0].id, | ||||||||||||||||||||||||||||||||||||||
| }; | ||||||||||||||||||||||||||||||||||||||
| MyGatheringTabs.parameters = { | ||||||||||||||||||||||||||||||||||||||
| docs: { | ||||||||||||||||||||||||||||||||||||||
| description: { | ||||||||||||||||||||||||||||||||||||||
| story: "'나의 약속' 페이지에서 사용되는 탭", | ||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||
| }; | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| export const CrewTabs = Template.bind({}); | ||||||||||||||||||||||||||||||||||||||
| CrewTabs.args = { | ||||||||||||||||||||||||||||||||||||||
| tabs: tabData.crewTabs, | ||||||||||||||||||||||||||||||||||||||
| activeTab: tabData.crewTabs[0].id, | ||||||||||||||||||||||||||||||||||||||
| export const ReviewTabs = Template.bind({}); | ||||||||||||||||||||||||||||||||||||||
| ReviewTabs.args = { | ||||||||||||||||||||||||||||||||||||||
| tabs: tabData.reviewTabs, | ||||||||||||||||||||||||||||||||||||||
| activeTab: tabData.reviewTabs[0].id, | ||||||||||||||||||||||||||||||||||||||
| }; | ||||||||||||||||||||||||||||||||||||||
| ReviewTabs.parameters = { | ||||||||||||||||||||||||||||||||||||||
| docs: { | ||||||||||||||||||||||||||||||||||||||
| description: { | ||||||||||||||||||||||||||||||||||||||
| story: "'마이페이지' 페이지의 리뷰에서 사용되는 탭", | ||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||
| }; | ||||||||||||||||||||||||||||||||||||||
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.
타입 시그니처 변경에 대한 검토가 필요합니다.
StoryFn<InternalCategoryProps>에서StoryFn으로 변경되었는데, 이는 타입 안정성을 낮출 수 있습니다.다음과 같이 수정하는 것을 제안드립니다:
📝 Committable suggestion