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