diff --git a/components/ReservationListCard/ReservationListCard.types.ts b/components/ReservationListCard/ReservationListCard.types.ts deleted file mode 100644 index cf25f89..0000000 --- a/components/ReservationListCard/ReservationListCard.types.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { MyReservationList } from './mockData'; - -export interface ReservationCardProps { - mockData: MyReservationList; -} diff --git a/components/Review/Review.types.ts b/components/Review/Review.types.ts index 162fc29..ef80868 100644 --- a/components/Review/Review.types.ts +++ b/components/Review/Review.types.ts @@ -1,4 +1,4 @@ -import { MyReservationList } from '../ReservationListCard/mockData'; +import { MyReservationProps } from '../ReservationFilter/myReservationTypes.types'; export interface RatingProps { currentRating: number; @@ -6,6 +6,6 @@ export interface RatingProps { } export interface ReviewProps { - reservation: MyReservationList; + reservation: MyReservationProps; closeModal: () => void; } diff --git a/pages/_app.tsx b/pages/_app.tsx index 9dda1a9..dae4e75 100644 --- a/pages/_app.tsx +++ b/pages/_app.tsx @@ -60,13 +60,13 @@ export default function App({ Component, pageProps }: AppProps) { {isLoading ? ( ) : ( - - {childContent} - - - - - + + {childContent} + + + + + )} ); diff --git a/pages/reservation.tsx b/pages/reservation.tsx index 7898989..672cb64 100644 --- a/pages/reservation.tsx +++ b/pages/reservation.tsx @@ -1,6 +1,6 @@ import ReservationListCard from '@/components/ReservationListCard/ReservationListCard'; import ReservationFilter from '@/components/ReservationFilter/ReservationFilter'; -import SideNavigation from '@/components/SideNavigation/SideNavigation'; // Corrected import name +import SideNavigation from '@/components/SideNavigation/SideNavigation'; import Image from 'next/image'; import { useEffect, useState } from 'react'; import { useReservationList } from '@/hooks/useReservationList'; @@ -9,7 +9,7 @@ import { statusType, } from '@/components/ReservationFilter/myReservationTypes.types'; -export default function myReservationPage() { +export default function MyReservationPage() { const [filterOption, setFilterOption] = useState(); const [reservationListByFilter, setReservationListByFilter] = useState< MyReservationProps[]