feat(BOOK-463): Fetching hotel filters from CMS and using these inside the destination pages and select hotel page

* feat(BOOK-463): Fetching hotel filters from CMS and using these inside the destination pages

* fix(BOOK-698): fetch hotel filters from CMS on select hotel page

Approved-by: Bianca Widstam
This commit is contained in:
Erik Tiekstra
2026-01-12 12:02:25 +00:00
parent b2ca2c2612
commit 0c6a4cf186
40 changed files with 732 additions and 399 deletions

View File

@@ -8,7 +8,7 @@ import { env } from "../../env/server"
import { BookingFlowConfig } from "../bookingFlowConfig/bookingFlowConfig"
import { MapContainer } from "../components/MapContainer"
import {
getFiltersFromHotels,
fetchHotelFiltersAndMapToCategorizedFilters,
getHotels,
} from "../components/SelectHotel/helpers"
import {
@@ -108,7 +108,11 @@ export async function AlternativeHotelsMapPage({
config,
})
const filterList = getFiltersFromHotels(hotels, isBookingCodeRateAvailable)
const filterList = await fetchHotelFiltersAndMapToCategorizedFilters(
hotels,
isBookingCodeRateAvailable,
lang
)
return (
<BookingFlowConfig config={config}>