feat: only show alerts when booking dates are affected

This commit is contained in:
Simon Emanuelsson
2025-06-16 15:41:34 +02:00
committed by Simon.Emanuelsson
parent 64b3bd71dc
commit 145a6d2365
5 changed files with 57 additions and 16 deletions

View File

@@ -27,6 +27,7 @@ export default async function SelectRatePage({
if (!searchDetails?.hotel) {
return notFound()
}
const { adultsInRoom, childrenInRoom, hotel, noOfRooms, bookingCode } =
searchDetails
@@ -47,7 +48,7 @@ export default async function SelectRatePage({
}
return (
<>
<HotelInfoCard hotel={hotelData.hotel} />
<HotelInfoCard booking={booking} hotel={hotelData.hotel} />
{isInValidFNF ? (
<FnFNotAllowedAlert />