From 9ad8d397129390ff17750c373ac77abc30d06a6a Mon Sep 17 00:00:00 2001 From: Linus Flood Date: Thu, 6 Feb 2025 13:30:18 +0000 Subject: [PATCH] Merged in fix/hotelreservation-skeletons (pull request #1270) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix: skeletons in hotelreservation key includes all search params * fix: skeletons in hotelreservation key includes all search params Approved-by: Joakim Jäderberg --- .../(standard)/select-hotel/map/page.tsx | 7 ++++++- .../hotelreservation/(standard)/select-hotel/page.tsx | 2 +- .../hotelreservation/(standard)/select-rate/page.tsx | 10 +++++++++- 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/app/[lang]/(live)/(public)/hotelreservation/(standard)/select-hotel/map/page.tsx b/app/[lang]/(live)/(public)/hotelreservation/(standard)/select-hotel/map/page.tsx index 024ab49c5..a1d11d80d 100644 --- a/app/[lang]/(live)/(public)/hotelreservation/(standard)/select-hotel/map/page.tsx +++ b/app/[lang]/(live)/(public)/hotelreservation/(standard)/select-hotel/map/page.tsx @@ -16,11 +16,16 @@ export default async function SelectHotelMapPage({ }: PageArgs) { setLang(params.lang) + const roomKey = Object.keys(searchParams) + .filter((key) => key.startsWith("room[")) + .map((key) => searchParams[key]) + .join("-") + return (
} > diff --git a/app/[lang]/(live)/(public)/hotelreservation/(standard)/select-hotel/page.tsx b/app/[lang]/(live)/(public)/hotelreservation/(standard)/select-hotel/page.tsx index b6f7bb4d9..5dc369727 100644 --- a/app/[lang]/(live)/(public)/hotelreservation/(standard)/select-hotel/page.tsx +++ b/app/[lang]/(live)/(public)/hotelreservation/(standard)/select-hotel/page.tsx @@ -20,7 +20,7 @@ export default async function SelectHotelPage({ return ( } > diff --git a/app/[lang]/(live)/(public)/hotelreservation/(standard)/select-rate/page.tsx b/app/[lang]/(live)/(public)/hotelreservation/(standard)/select-rate/page.tsx index e9f4ce451..4032c91ef 100644 --- a/app/[lang]/(live)/(public)/hotelreservation/(standard)/select-rate/page.tsx +++ b/app/[lang]/(live)/(public)/hotelreservation/(standard)/select-rate/page.tsx @@ -79,6 +79,11 @@ export default async function SelectRatePage({ const hotelId = +hotel.id + const roomKey = Object.keys(searchParams) + .filter((key) => key.startsWith("room[")) + .map((key) => searchParams[key]) + .join("-") + return ( <> - }> + } + >