diff --git a/src/constants/bookingStatus.ts b/src/constants/bookingStatus.ts index e1dcf9a6..18561617 100644 --- a/src/constants/bookingStatus.ts +++ b/src/constants/bookingStatus.ts @@ -1,9 +1,9 @@ export const bookingStatusText = { - CHECKING_PAYMENT: "입금 확인 예정", + CHECKING_PAYMENT: "입금 확인 중", BOOKING_CONFIRMED: "입금 완료", BOOKING_CANCELLED: "취소 완료", - BOOKING_DELETED: "예매 삭제", - REFUND_REQUESTED: "취소 요청", + BOOKING_DELETED: "취소 완료", + REFUND_REQUESTED: "환불 요청", }; export type bookingStatusTypes = keyof typeof bookingStatusText; diff --git a/src/pages/cancel/Cancel.styled.ts b/src/pages/cancel/Cancel.styled.ts index 052c83b8..ad534b84 100644 --- a/src/pages/cancel/Cancel.styled.ts +++ b/src/pages/cancel/Cancel.styled.ts @@ -5,7 +5,7 @@ export const CancelLayout = styled.main` display: flex; flex-direction: column; width: 100%; - padding: 1.6rem 2.4rem; + padding: 1.6rem 2.4rem calc(1.6rem + 5.6rem + 1.2rem); `; export const PerformWrapper = styled.section` diff --git a/src/pages/cancel/Cancel.tsx b/src/pages/cancel/Cancel.tsx index 7801dd14..f5707daa 100644 --- a/src/pages/cancel/Cancel.tsx +++ b/src/pages/cancel/Cancel.tsx @@ -22,11 +22,7 @@ const Cancel = () => { const { setHeader } = useHeader(); const { openAlert } = useModal(); const { state } = useLocation(); - const { confirmCancelAction } = useCancelBooking( - state?.bookerName, - state?.number, - state?.password - ); + const { confirmCancelAction } = useCancelBooking(state?.name, state?.phone, state?.password); const navigate = useNavigate(); const [isDeposit, setIsDeposit] = useState(null); const [bankOpen, setBankOpen] = useState(false); diff --git a/src/pages/lookup/Lookup.tsx b/src/pages/lookup/Lookup.tsx index 0e17cdd9..9d5afad4 100644 --- a/src/pages/lookup/Lookup.tsx +++ b/src/pages/lookup/Lookup.tsx @@ -68,8 +68,8 @@ const Lookup = () => { }; useEffect(() => { - if (state?.name && state?.phone && state?.password && !cachedData && !isFetching) { - // 비회원 데이터가 캐시에 없을 경우 새로 가져옴 + if (state?.name && state?.phone && state?.password && !isFetching) { + // 비회원 데이터 새로 가져옴 fetchBookingList(state).finally(() => { setIsFetching(false); setCachedData(getCachedBookingList(state.name, state.phone, state.password));