From ec790b4431f66442203c77ed34dcf6469e99cdba Mon Sep 17 00:00:00 2001 From: jerry Date: Sun, 1 Sep 2024 03:16:04 +0900 Subject: [PATCH] =?UTF-8?q?hotfix:=20=EA=B0=9C=EB=B0=9C=20=EC=84=9C?= =?UTF-8?q?=EB=B2=84=20=EB=B0=B0=ED=8F=AC=20=EC=98=A4=EB=A5=98=20=ED=95=B4?= =?UTF-8?q?=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modifyManage/components/RoleWrapper.tsx | 3 +- src/pages/modifyManage/constants/genreList.ts | 136 +++++++++--------- src/pages/myRegisterdShow/MyRegisterdShow.tsx | 2 +- 3 files changed, 71 insertions(+), 70 deletions(-) diff --git a/src/pages/modifyManage/components/RoleWrapper.tsx b/src/pages/modifyManage/components/RoleWrapper.tsx index 17e8cf33..90beddfa 100644 --- a/src/pages/modifyManage/components/RoleWrapper.tsx +++ b/src/pages/modifyManage/components/RoleWrapper.tsx @@ -6,11 +6,12 @@ import { ChangeEvent, useState } from "react"; import * as S from "../ModifyManage.styled"; interface Role { - id: number; + makerId: number; makerName: string; makerRole: string; makerPhoto: string; } + interface RoleWrapperProps { id: number; role: Role; diff --git a/src/pages/modifyManage/constants/genreList.ts b/src/pages/modifyManage/constants/genreList.ts index e0582045..aeceb257 100644 --- a/src/pages/modifyManage/constants/genreList.ts +++ b/src/pages/modifyManage/constants/genreList.ts @@ -28,71 +28,71 @@ export const GENRE_LIST = [ { id: 4, genre: "ETC" as SHOW_TYPE_KEY, genreKor: "기타", genreIcon: StyledIcon(IconLargeEtc) }, ]; -export const GET_MODIFY_MANAGE_RESPONSE: GigInfo = { - status: 200, - message: "공연 정보가 성공적으로 조회되었습니다.", - data: { - userId: 2, - accountHolder: "공준혁혁", - performanceId: 1, - performanceTitle: "공연 제목입니다", - genre: "BAND", - runningTime: 120, - performanceDescription: "공연 소개입니다", - performanceAttentionNote: "유의사항입니다", - bankName: "KB_KOOKMIN", - accountNumber: "924232-22-234232", - posterImage: "포스터 이미지 URL입니다", - performanceTeamName: "비트", - performanceVenue: "우리집", - performanceContact: "010-3234-2342", - performancePeriod: "2023.12.28~2023.12.29", - ticketPrice: 50000, - totalScheduleCount: 2, - isBookerExist: true, - scheduleList: [ - { - scheduleId: 1, - performanceDate: "2024-12-28T19:30:00", - totalTicketCount: 100, - dueDate: 5, // 공연 날짜 - 현재 날짜 - scheduleNumber: "FIRST", - }, - { - scheduleId: 2, - performanceDate: "2024-12-29T19:30:00", - totalTicketCount: 100, - dueDate: 6, // 공연 날짜 - 현재 날짜 - scheduleNumber: "SECOND", - }, - ], - castList: [ - { - castId: 1, - castName: "황혜린", - castRole: "서버", - castPhoto: "출연진 사진 URL", - }, - { - castId: 2, - castName: "정도영", - castRole: "웹", - castPhoto: "출연진 사진 URL", - }, - ], - staffList: [ - { - staffId: 1, - staffName: "서지우", - staffRole: "리드", - staffPhoto: "스태프 사진 URL", - }, - { - staffId: 2, - staffName: "양성재", - staffRole: "피엠", - staffPhoto: "스태프 사진 URL", - }, - ], - }, -}; +// export const GET_MODIFY_MANAGE_RESPONSE: GigInfo = { +// status: 200, +// message: "공연 정보가 성공적으로 조회되었습니다.", +// data: { +// userId: 2, +// accountHolder: "공준혁혁", +// performanceId: 1, +// performanceTitle: "공연 제목입니다", +// genre: "BAND", +// runningTime: 120, +// performanceDescription: "공연 소개입니다", +// performanceAttentionNote: "유의사항입니다", +// bankName: "KB_KOOKMIN", +// accountNumber: "924232-22-234232", +// posterImage: "포스터 이미지 URL입니다", +// performanceTeamName: "비트", +// performanceVenue: "우리집", +// performanceContact: "010-3234-2342", +// performancePeriod: "2023.12.28~2023.12.29", +// ticketPrice: 50000, +// totalScheduleCount: 2, +// isBookerExist: true, +// scheduleList: [ +// { +// scheduleId: 1, +// performanceDate: "2024-12-28T19:30:00", +// totalTicketCount: 100, +// dueDate: 5, // 공연 날짜 - 현재 날짜 +// scheduleNumber: "FIRST", +// }, +// { +// scheduleId: 2, +// performanceDate: "2024-12-29T19:30:00", +// totalTicketCount: 100, +// dueDate: 6, // 공연 날짜 - 현재 날짜 +// scheduleNumber: "SECOND", +// }, +// ], +// castList: [ +// { +// castId: 1, +// castName: "황혜린", +// castRole: "서버", +// castPhoto: "출연진 사진 URL", +// }, +// { +// castId: 2, +// castName: "정도영", +// castRole: "웹", +// castPhoto: "출연진 사진 URL", +// }, +// ], +// staffList: [ +// { +// staffId: 1, +// staffName: "서지우", +// staffRole: "리드", +// staffPhoto: "스태프 사진 URL", +// }, +// { +// staffId: 2, +// staffName: "양성재", +// staffRole: "피엠", +// staffPhoto: "스태프 사진 URL", +// }, +// ], +// }, +// }; diff --git a/src/pages/myRegisterdShow/MyRegisterdShow.tsx b/src/pages/myRegisterdShow/MyRegisterdShow.tsx index 174c1730..331b9726 100644 --- a/src/pages/myRegisterdShow/MyRegisterdShow.tsx +++ b/src/pages/myRegisterdShow/MyRegisterdShow.tsx @@ -29,7 +29,7 @@ const MyRegisterdShow = () => { }, [setHeader]); //추후 API에서 받아온 걸로 set할 예정 - type MakerPerformanceDetail = components["schemas"]["MakerPerformanceDetail"]; + type MakerPerformanceDetail = components["schemas"]["MakerPerformanceDetailResponse"]; const { data, isLoading } = useMakerPerformance(); const [showList, setShowList] = useState( data?.performances