diff --git a/src/components/calendar/ModalContents/index.tsx b/src/components/calendar/ModalContents/index.tsx index fd883c76..7b188bd6 100644 --- a/src/components/calendar/ModalContents/index.tsx +++ b/src/components/calendar/ModalContents/index.tsx @@ -37,10 +37,10 @@ const ModalContents = ({ gameId, activeDate, onClickCloseButton, onClickCardButt }; const ReservationMockData: Record = { - '0-confirmed': reservationDetailMockDataConfirmed as DetailReservationResponse, - '0-declined': reservationDetailMockDataDeclined as DetailReservationResponse, - '0-pending': reservationDetailMockDataPending as DetailReservationResponse, - '1-pending': reservationDetailMockDataPendingNoData as DetailReservationResponse, + '1-0-confirmed': reservationDetailMockDataConfirmed as DetailReservationResponse, + '1-0-declined': reservationDetailMockDataDeclined as DetailReservationResponse, + '1-0-pending': reservationDetailMockDataPending as DetailReservationResponse, + '1-1-pending': reservationDetailMockDataPendingNoData as DetailReservationResponse, }; const dropdownOptions = getScheduleDropdownOption(DailyMockData[activeDate]); @@ -60,22 +60,19 @@ const ModalContents = ({ gameId, activeDate, onClickCloseButton, onClickCardButt const currentDeviceType = useDeviceType(); - const { totalCount, reservations } = ReservationMockData[`${scheduleId}-${selectedStatus}`]; + const { totalCount, reservations } = ReservationMockData[`${gameId}-${scheduleId}-${selectedStatus}`]; + + const handleChangeTabId = (selectedId: string | number) => { + setSelectedStatus(selectedId as MyReservationsStatus); + }; const handleChangeScheduleId = (value: string | number) => { setScheduleId(value as number); }; - console.log(gameId); - return (
- setSelectedStatus(selectedId as MyReservationsStatus)} - /> +

예약 날짜

{getDateStringKR(activeDate)}