Skip to content

Commit a0b5114

Browse files
committed
fix: 빌드에러 해결 - 사용하지 않는 변수 제거
1 parent 48bfc8d commit a0b5114

File tree

2 files changed

+2
-28
lines changed

2 files changed

+2
-28
lines changed

src/app/(with-header)/mypage/dashboard/components/ReservationInfoModal.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
'use client';
22

33
import { useState, useEffect } from 'react';
4-
import { useQueryClient } from '@tanstack/react-query';
54
import {
65
useReservedSchedules,
76
useActivityReservations,
@@ -52,7 +51,6 @@ export default function ReservationInfoModal({
5251

5352
// 예약 상태 업데이트
5453
const updateReservationMutation = useUpdateActivityReservationStatus();
55-
const queryClient = useQueryClient();
5654

5755
const timeSlotOptions = createFilteredTimeSlotOptions(schedules, activeTab);
5856
const selectedTimeSlotValue = getSelectedTimeSlotValue(

src/app/(with-header)/mypage/reservations/page.tsx

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,8 @@ export default function MyReservationsPage() {
4545
});
4646

4747
// 예약 리스트 조회 (무한 스크롤)
48-
const {
49-
data,
50-
fetchNextPage,
51-
hasNextPage,
52-
isFetchingNextPage,
53-
isLoading,
54-
error,
55-
} = useMyReservations(filter || undefined);
48+
const { data, fetchNextPage, hasNextPage, isFetchingNextPage, isLoading } =
49+
useMyReservations(filter || undefined);
5650

5751
// 예약 취소 뮤테이션
5852
const cancelReservationMutation = useCancelReservation();
@@ -196,24 +190,6 @@ export default function MyReservationsPage() {
196190
);
197191
}
198192

199-
// 에러 상태
200-
if (error) {
201-
return (
202-
<div className='w-full max-w-none lg:max-w-792'>
203-
<div className='mb-48 flex items-center justify-between'>
204-
<h1 className='text-nomad text-3xl leading-42 font-bold'>
205-
예약 내역
206-
</h1>
207-
<ReservationFilter value={filter} onChange={setFilter} />
208-
</div>
209-
<div className='text-center text-red-500'>
210-
<p>예약 내역을 불러오는데 실패했습니다.</p>
211-
<p className='mt-2 text-sm text-gray-600'>{error.message}</p>
212-
</div>
213-
</div>
214-
);
215-
}
216-
217193
return (
218194
<>
219195
<div className='w-full max-w-none lg:max-w-792'>

0 commit comments

Comments
 (0)