feat(SW-1230): Now hiding booking widget on meeting pages

Approved-by: Fredrik Thorsson
Approved-by: Matilda Landström
This commit is contained in:
Erik Tiekstra
2025-03-13 11:41:31 +00:00
parent 065ebb57c6
commit 4df5e52a92

View File

@@ -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} />