refactor: url management in hotel reservation flow

This commit is contained in:
Christel Westerberg
2025-01-13 14:26:38 +01:00
parent 23ff0970e9
commit b2935114e3
48 changed files with 407 additions and 418 deletions

View File

@@ -20,8 +20,13 @@ export default async function SelectHotelMapPage({
setLang(params.lang)
const searchDetails = await getHotelSearchDetails({ searchParams })
if (!searchDetails) return notFound()
const { city, adultsInRoom, childrenInRoom, childrenInRoomArray } =
searchDetails
const {
city,
adultsInRoom,
childrenInRoom,
childrenInRoomArray,
selectHotelParams,
} = searchDetails
if (!city) return notFound()
@@ -34,7 +39,7 @@ export default async function SelectHotelMapPage({
>
<SelectHotelMapContainer
city={city}
searchParams={searchParams}
selectHotelParams={selectHotelParams}
adultsInRoom={adultsInRoom}
childrenInRoom={childrenInRoom}
child={childrenInRoomArray}