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,
|
||||
})
|
||||
|
||||
const isMeetingSubpage =
|
||||
hotelData?.additionalData.meetingRooms.nameInUrl === searchParams.subpage
|
||||
|
||||
if (isMeetingSubpage) {
|
||||
return null
|
||||
}
|
||||
|
||||
const hotelPageParams = {
|
||||
hotel: hotelData?.hotel?.id || "",
|
||||
city: hotelData?.hotel?.cityName || "",
|
||||
hotel: hotelData?.hotel.id || "",
|
||||
city: hotelData?.hotel.cityName || "",
|
||||
}
|
||||
|
||||
return <BookingWidget bookingWidgetSearchParams={hotelPageParams} />
|
||||
|
||||
Reference in New Issue
Block a user