@@ -7,7 +7,7 @@ import { Navigation, Pagination } from "swiper/modules";
77import { Swiper , SwiperSlide } from "swiper/react" ;
88
99import { Button , Flex , Typography } from "@permit/design-system" ;
10- import { useTimetablesSuspenseQuery } from "@/data/events/getTimetables /queries" ;
10+ import { useSiteMapSuspenseQuery } from "@/data/events/getSiteMap /queries" ;
1111
1212import "swiper/css" ;
1313import "swiper/css/navigation" ;
@@ -21,17 +21,10 @@ type Props = {
2121 eventId : string ;
2222} ;
2323
24- // TODO: 임시 하드코딩
25- const siteMapImages = [
26- "https://d3c0v2xj3fc363.cloudfront.net/events/testEventId/images/sitemap1.jpg" ,
27- "https://d3c0v2xj3fc363.cloudfront.net/events/testEventId/images/sitemap2.jpg" ,
28- "https://d3c0v2xj3fc363.cloudfront.net/events/testEventId/images/sitemap0.jpg" ,
29- ] ;
30-
3124export const SiteMapClient = ( { eventId } : Props ) => {
3225 const router = useRouter ( ) ;
3326
34- const { data : timetablesData } = useTimetablesSuspenseQuery ( {
27+ const { data : timetablesData } = useSiteMapSuspenseQuery ( {
3528 eventId,
3629 options : {
3730 refetchOnWindowFocus : true ,
@@ -74,7 +67,7 @@ export const SiteMapClient = ({ eventId }: Props) => {
7467 loop = { true }
7568 className = { cx ( "swiper" ) }
7669 >
77- { siteMapImages . map ( ( imageUrl , index ) => (
70+ { timetablesData . siteMapImages . map ( ( { imageUrl } , index ) => (
7871 < SwiperSlide key = { index } className = { cx ( "swiper_slide" ) } >
7972 < div className = { cx ( "image_container" ) } >
8073 < Image
0 commit comments