fix(SW-1111) Added Loading instead of Suspense
This commit is contained in:
@@ -0,0 +1,5 @@
|
|||||||
|
import { SelectHotelMapContainerSkeleton } from "@/components/HotelReservation/SelectHotel/SelectHotelMap/SelectHotelMapContainerSkeleton"
|
||||||
|
|
||||||
|
export default function Loading() {
|
||||||
|
return <SelectHotelMapContainerSkeleton />
|
||||||
|
}
|
||||||
@@ -44,14 +44,12 @@ export default async function SelectHotelMapPage({
|
|||||||
return (
|
return (
|
||||||
<div className={styles.main}>
|
<div className={styles.main}>
|
||||||
<MapContainer>
|
<MapContainer>
|
||||||
<Suspense key={city.id} fallback={<SelectHotelMapContainerSkeleton />}>
|
<SelectHotelMapContainer
|
||||||
<SelectHotelMapContainer
|
city={city}
|
||||||
city={city}
|
searchParams={searchParams}
|
||||||
searchParams={searchParams}
|
adultsInRoom={adultsInRoom}
|
||||||
adultsInRoom={adultsInRoom}
|
childrenInRoom={childrenInRoom}
|
||||||
childrenInRoom={childrenInRoom}
|
/>
|
||||||
/>
|
|
||||||
</Suspense>
|
|
||||||
</MapContainer>
|
</MapContainer>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user