feat(SW-1230): Now hiding booking widget on meeting pages
Approved-by: Fredrik Thorsson Approved-by: Matilda Landström
This commit is contained in:
@@ -25,9 +25,16 @@ export default async function BookingWidgetPage({
|
|||||||
isCardOnlyPayment: false,
|
isCardOnlyPayment: false,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
const isMeetingSubpage =
|
||||||
|
hotelData?.additionalData.meetingRooms.nameInUrl === searchParams.subpage
|
||||||
|
|
||||||
|
if (isMeetingSubpage) {
|
||||||
|
return null
|
||||||
|
}
|
||||||
|
|
||||||
const hotelPageParams = {
|
const hotelPageParams = {
|
||||||
hotel: hotelData?.hotel?.id || "",
|
hotel: hotelData?.hotel.id || "",
|
||||||
city: hotelData?.hotel?.cityName || "",
|
city: hotelData?.hotel.cityName || "",
|
||||||
}
|
}
|
||||||
|
|
||||||
return <BookingWidget bookingWidgetSearchParams={hotelPageParams} />
|
return <BookingWidget bookingWidgetSearchParams={hotelPageParams} />
|
||||||
|
|||||||
Reference in New Issue
Block a user