Merged in feat/SW-1333-hotel-endpoint (pull request #1206)

Feat(SW-133): Add additionalData endpoint

Approved-by: Erik Tiekstra
Approved-by: Fredrik Thorsson
This commit is contained in:
Matilda Landström
2025-01-27 11:39:13 +00:00
parent bf76c6277f
commit 577a4ca35e
17 changed files with 239 additions and 50 deletions

View File

@@ -95,7 +95,7 @@ export async function RoomsContainer({
<Rooms
availablePackages={packages ?? []}
roomsAvailability={roomsAvailability}
roomCategories={hotelData?.included?.rooms ?? []}
roomCategories={hotelData?.included.rooms ?? []}
hotelType={hotelData?.data.attributes?.hotelType}
isUserLoggedIn={isUserLoggedIn}
/>

View File

@@ -32,7 +32,7 @@ export default function HotelReservationSidePeek({
}
)
const selectedRoom = hotelData?.included?.rooms?.find((room) =>
const selectedRoom = hotelData?.included.rooms?.find((room) =>
room.roomTypes.some((type) => type.code === roomTypeCode)
)
@@ -42,6 +42,7 @@ export default function HotelReservationSidePeek({
{hotelData && (
<HotelSidePeek
hotel={hotelData.data?.attributes}
additionalHotelData={hotelData.included.additionalData}
activeSidePeek={activeSidePeek}
close={close}
showCTA={showCTA}