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 (
|
||||
<div className={styles.main}>
|
||||
<MapContainer>
|
||||
<Suspense key={city.id} fallback={<SelectHotelMapContainerSkeleton />}>
|
||||
<SelectHotelMapContainer
|
||||
city={city}
|
||||
searchParams={searchParams}
|
||||
adultsInRoom={adultsInRoom}
|
||||
childrenInRoom={childrenInRoom}
|
||||
/>
|
||||
</Suspense>
|
||||
<SelectHotelMapContainer
|
||||
city={city}
|
||||
searchParams={searchParams}
|
||||
adultsInRoom={adultsInRoom}
|
||||
childrenInRoom={childrenInRoom}
|
||||
/>
|
||||
</MapContainer>
|
||||
</div>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user