Merged in fix/hoteinfocard-pass-hotel (pull request #1295)
feat:hotel info card - pass hoteldata since we already fetching it on page level * feat:hotel info card - pass hoteldata since we already fetching it on page level
This commit is contained in:
@@ -38,6 +38,7 @@ export default async function SelectRatePage({
|
||||
|
||||
const hotelData = await getHotel({
|
||||
hotelId: hotel.id,
|
||||
isCardOnlyPayment: false,
|
||||
language: params.lang,
|
||||
})
|
||||
|
||||
@@ -83,18 +84,8 @@ export default async function SelectRatePage({
|
||||
|
||||
return (
|
||||
<>
|
||||
<Suspense
|
||||
key={JSON.stringify(searchParams)}
|
||||
fallback={<HotelInfoCardSkeleton />}
|
||||
>
|
||||
<HotelInfoCard
|
||||
hotelId={hotelId}
|
||||
lang={params.lang}
|
||||
fromDate={fromDate.toDate()}
|
||||
toDate={toDate.toDate()}
|
||||
adultArray={adultsInRoom}
|
||||
childArray={childrenInRoom}
|
||||
/>
|
||||
<Suspense fallback={<HotelInfoCardSkeleton />}>
|
||||
<HotelInfoCard hotelData={hotelData} />
|
||||
</Suspense>
|
||||
|
||||
<Suspense
|
||||
|
||||
Reference in New Issue
Block a user