feat(SW-1534): Added booking code functionality from either searchParams or pageSettings

Approved-by: Christian Andolf
This commit is contained in:
Erik Tiekstra
2025-03-25 07:36:43 +00:00
parent bb0478033f
commit 2c08b141b2
7 changed files with 35 additions and 5 deletions

View File

@@ -33,8 +33,9 @@ export default async function BookingWidgetPage({
}
const hotelPageParams = {
hotel: hotelData?.hotel.id || "",
city: hotelData?.hotel.cityName || "",
bookingCode: searchParams.bookingCode ?? "",
hotel: hotelData?.hotel.id ?? "",
city: hotelData?.hotel.cityName ?? "",
}
return <BookingWidget bookingWidgetSearchParams={hotelPageParams} />