-
+
diff --git a/src/components/common/tab/tab.stories.tsx b/src/components/common/tab/tab.stories.tsx
index 51aefb61..a44f90c7 100644
--- a/src/components/common/tab/tab.stories.tsx
+++ b/src/components/common/tab/tab.stories.tsx
@@ -8,6 +8,15 @@ const meta: Meta = {
title: 'layout/tabs',
component: Tabs,
tags: ['autodocs'],
+ parameters: {
+ docs: {
+ subtitle: '화면 최상단에 위치한 헤더',
+ description: {
+ component:
+ "'로고, 크루찾기, 나의크루, 나의약속, 로그인/마이페이지/로그아웃'으로 구성되어 있으며 해당페이지로 연결됩니다.",
+ },
+ },
+ },
argTypes: {
tabs: {
description: '탭 목록 데이터 배열',
@@ -40,15 +49,41 @@ const Template: StoryFn = 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: "'마이페이지' 페이지의 리뷰에서 사용되는 탭",
+ },
+ },
};
diff --git a/src/mock/review-data.ts b/src/mock/review-data.ts
deleted file mode 100644
index eb06cca9..00000000
--- a/src/mock/review-data.ts
+++ /dev/null
@@ -1,294 +0,0 @@
-import { CrewReview } from '../types/review';
-
-// NOTE: 크루 리뷰
-export const CrewReviewData: { data: CrewReview[] } = {
- data: [
- {
- crewId: 1,
- id: 1,
- rate: 5,
- comment:
- '글이 길어질 경우 글이 길어질 경우 확인 글이 길어질 경우 글이 길어질 경우 글이 길어질 경우 글이 길어질 경우 글이 길어질 경우 글이 길어질 경우 글이 길어질 경우 글이 길어질 경우 글이 길어질 경우 글이 길어질 경우 글이 길어질 경우 글이 길어질 경우 글이 길어질 경우 글이 길어질 경우 글이 길어질 경우 글이 길어질 경우 글이 길어질 경우 글이 길어질 경우 최고의 모임~',
- createdAt: '2024-10-30T10:09:12.306+09:00',
- reviewer: {
- id: 1,
- nickname: '샘플1',
- profileImageUrl: 'https://i.pinimg.com/736x/5d/83/ce/5d83cec545201e5ca8f2477070e2eac9.jpg',
- },
- },
- {
- crewId: 1,
- id: 2,
- rate: 2,
- comment: '솔직히 좀 별로..',
- createdAt: '2024-10-30T10:09:12.306+09:00',
- reviewer: {
- id: 2,
- nickname: '샘플2',
- profileImageUrl: 'https://i.pinimg.com/736x/5d/83/ce/5d83cec545201e5ca8f2477070e2eac9.jpg',
- },
- },
- {
- crewId: 1,
- id: 3,
- rate: 5,
- comment: '진짜 좋은 모임이었다.. 굿',
- createdAt: '2024-10-30T10:09:12.306+09:00',
- reviewer: {
- id: 3,
- nickname: '샘플3',
- profileImageUrl: 'https://i.pinimg.com/736x/5d/83/ce/5d83cec545201e5ca8f2477070e2eac9.jpg',
- },
- },
- {
- crewId: 1,
- id: 4,
- rate: 5,
- comment: '모임계를 뒤집어 엎으셨다',
- createdAt: '2024-10-30T10:09:12.306+09:00',
- reviewer: {
- id: 4,
- nickname: '샘플4',
- profileImageUrl: 'https://i.pinimg.com/736x/5d/83/ce/5d83cec545201e5ca8f2477070e2eac9.jpg',
- },
- },
- {
- crewId: 1,
- id: 5,
- rate: 4,
- comment: '좋아용',
- createdAt: '2024-10-31T10:09:12.306+09:00',
- reviewer: {
- id: 5,
- nickname: '샘플5',
- profileImageUrl: 'https://i.pinimg.com/736x/5d/83/ce/5d83cec545201e5ca8f2477070e2eac9.jpg',
- },
- },
- {
- crewId: 1,
- id: 5,
- rate: 1,
- comment: '별로였음',
- createdAt: '2024-10-31T10:09:12.306+09:00',
- reviewer: {
- id: 6,
- nickname: '샘플6',
- profileImageUrl: 'https://i.pinimg.com/736x/5d/83/ce/5d83cec545201e5ca8f2477070e2eac9.jpg',
- },
- },
- {
- crewId: 1,
- id: 5,
- rate: 4,
- comment: '나만 좋았냐',
- createdAt: '2024-10-31T10:09:12.306+09:00',
- reviewer: {
- id: 7,
- nickname: '샘플7',
- profileImageUrl: 'https://i.pinimg.com/736x/5d/83/ce/5d83cec545201e5ca8f2477070e2eac9.jpg',
- },
- },
- {
- crewId: 1,
- id: 6,
- rate: 0,
- comment: '솔직히 좀 별로..',
- createdAt: '2024-10-30T10:09:12.306+09:00',
- reviewer: {
- id: 2,
- nickname: '샘플2',
- profileImageUrl: 'https://i.pinimg.com/736x/5d/83/ce/5d83cec545201e5ca8f2477070e2eac9.jpg',
- },
- },
- {
- crewId: 1,
- id: 7,
- rate: 5,
- comment: '진짜 좋은 모임이었다.. 굿',
- createdAt: '2024-10-30T10:09:12.306+09:00',
- reviewer: {
- id: 3,
- nickname: '샘플3',
- profileImageUrl: 'https://i.pinimg.com/736x/5d/83/ce/5d83cec545201e5ca8f2477070e2eac9.jpg',
- },
- },
- {
- crewId: 1,
- id: 8,
- rate: 4,
- comment: '모임계를 뒤집어 엎으셨다',
- createdAt: '2024-10-30T10:09:12.306+09:00',
- reviewer: {
- id: 4,
- nickname: '샘플4',
- profileImageUrl: 'https://i.pinimg.com/736x/5d/83/ce/5d83cec545201e5ca8f2477070e2eac9.jpg',
- },
- },
- {
- crewId: 1,
- id: 9,
- rate: 5,
- comment: '좋아용',
- createdAt: '2024-10-31T10:09:12.306+09:00',
- reviewer: {
- id: 5,
- nickname: '샘플5',
- profileImageUrl: 'https://i.pinimg.com/736x/5d/83/ce/5d83cec545201e5ca8f2477070e2eac9.jpg',
- },
- },
- {
- crewId: 1,
- id: 10,
- rate: 2,
- comment: '별로였음',
- createdAt: '2024-10-31T10:09:12.306+09:00',
- reviewer: {
- id: 6,
- nickname: '샘플6',
- profileImageUrl: 'https://i.pinimg.com/736x/5d/83/ce/5d83cec545201e5ca8f2477070e2eac9.jpg',
- },
- },
- {
- crewId: 1,
- id: 11,
- rate: 5,
- comment: '나만 좋았냐',
- createdAt: '2024-10-31T10:09:12.306+09:00',
- reviewer: {
- id: 7,
- nickname: '샘플7',
- profileImageUrl: 'https://i.pinimg.com/736x/5d/83/ce/5d83cec545201e5ca8f2477070e2eac9.jpg',
- },
- },
- {
- crewId: 1,
- id: 12,
- rate: 4,
- comment: '모임계를 뒤집어 엎으셨다',
- createdAt: '2024-10-30T10:09:12.306+09:00',
- reviewer: {
- id: 4,
- nickname: '샘플4',
- profileImageUrl: 'https://i.pinimg.com/736x/5d/83/ce/5d83cec545201e5ca8f2477070e2eac9.jpg',
- },
- },
- {
- crewId: 1,
- id: 13,
- rate: 5,
- comment: '좋아용',
- createdAt: '2024-10-31T10:09:12.306+09:00',
- reviewer: {
- id: 5,
- nickname: '샘플5',
- profileImageUrl: 'https://i.pinimg.com/736x/5d/83/ce/5d83cec545201e5ca8f2477070e2eac9.jpg',
- },
- },
- {
- crewId: 1,
- id: 14,
- rate: 1,
- comment: '별로였음',
- createdAt: '2024-10-31T10:09:12.306+09:00',
- reviewer: {
- id: 6,
- nickname: '샘플6',
- profileImageUrl: 'https://i.pinimg.com/736x/5d/83/ce/5d83cec545201e5ca8f2477070e2eac9.jpg',
- },
- },
- {
- crewId: 1,
- id: 15,
- rate: 4,
- comment: '나만 좋았냐',
- createdAt: '2024-10-31T10:09:12.306+09:00',
- reviewer: {
- id: 7,
- nickname: '샘플7',
- profileImageUrl: 'https://i.pinimg.com/736x/5d/83/ce/5d83cec545201e5ca8f2477070e2eac9.jpg',
- },
- },
- ],
-};
-
-// NOTE: 나의 리뷰 (스토리북 테스트용)
-export const MyReviewData = {
- pages: [
- {
- content: [
- {
- crewId: 1,
- crewName: '크루크루크루크루크루크루',
- gatheringName: '모임모임모임약속약속약속',
- id: 3,
- rate: 3,
- comment: '리뷰리뷰리뷰리뷰리뷰리뷰리뷰리뷰리뷰리뷰',
- createdAt: '2024-11-09T10:09:12.306+09:00',
- gatheringLocation: '어느동',
- },
- {
- crewId: 2,
- crewName: '최초의크루이자최후의크루',
- gatheringName: '천지창조',
- id: 4,
- rate: 4,
- comment: '다시는 안 간다',
- createdAt: '2024-10-31T10:09:12.306+09:00',
- gatheringLocation: '어느동',
- },
- ],
- hasNext: true, // 다음 페이지 여부
- },
- {
- content: [
- {
- crewId: 3,
- crewName: '마지막크루...최종의최종의최종',
- gatheringName: '친구들아모여라',
- id: 5,
- rate: 2,
- comment: '펭귄이랑 친구하고싶어요',
- createdAt: '2024-10-31T10:09:12.306+09:00',
- gatheringLocation: '어느동',
- },
- {
- crewId: 4,
- crewName: '할일없는사람만들어오세요',
- gatheringName: '숨쉬기모임',
- id: 6,
- rate: 5,
- comment: '복식호흡을 할 수 있게 됐어요 감사합니다',
- createdAt: '2024-10-31T10:09:12.306+09:00',
- gatheringLocation: '어느동',
- },
- ],
- hasNext: true,
- },
- {
- content: [
- {
- crewId: 5,
- crewName: '크루크루크루크루크루크루',
- gatheringName: '모임모임모임약속약속약속',
- id: 7,
- rate: 3,
- comment: '리뷰리뷰리뷰리뷰리뷰리뷰리뷰리뷰리뷰리뷰',
- createdAt: '2024-10-31T00:56',
- gatheringLocation: '어느동',
- },
- {
- crewId: 6,
- crewName: '최초의크루이자최후의크루',
- gatheringName: '천지창조',
- id: 8,
- rate: 4,
- comment: '다시는 안 간다',
- createdAt: '2024-10-31T10:09:12.306+09:00',
- gatheringLocation: '어느동',
- },
- ],
- hasNext: false,
- },
- ],
- pageParams: [], // 페이지 파라미터
-};
diff --git a/src/types/create-crew.d.ts b/src/types/create-crew.d.ts
index f7302b63..478a0ea1 100644
--- a/src/types/create-crew.d.ts
+++ b/src/types/create-crew.d.ts
@@ -10,17 +10,6 @@ export interface CreateCrewFormTypes {
imageUrl: File | string | null;
}
-export interface EditCrewResponseTypes {
- title: string;
- mainCategory: string;
- subCategory: string;
- mainLocation: string;
- subLocation: string;
- totalCount: number;
- introduce: string;
- imageUrl: string;
-}
-
export interface CreateCrewRequestTypes {
title: string;
mainCategory: string;