From b3cd907584c2d659a9cd8a9ffe8704f858c96ee3 Mon Sep 17 00:00:00 2001 From: Tobias Johansson Date: Thu, 27 Feb 2025 09:06:59 +0000 Subject: [PATCH] Merged in fix/SW-1645-price-details-popup-missing-data (pull request #1413) fix(SW-1645): added room features to price detail popup * fix(SW-1645): added room features to price detail popup Approved-by: Michael Zetterberg Approved-by: Christian Andolf --- .../EnterDetails/Summary/UI/index.tsx | 1 + .../PriceDetailsModal/PriceDetailsTable/index.tsx | 15 +++++++++++++++ .../HotelReservation/PriceDetailsModal/index.tsx | 2 ++ 3 files changed, 18 insertions(+) diff --git a/apps/scandic-web/components/HotelReservation/EnterDetails/Summary/UI/index.tsx b/apps/scandic-web/components/HotelReservation/EnterDetails/Summary/UI/index.tsx index b80612c1c..9e7a30f46 100644 --- a/apps/scandic-web/components/HotelReservation/EnterDetails/Summary/UI/index.tsx +++ b/apps/scandic-web/components/HotelReservation/EnterDetails/Summary/UI/index.tsx @@ -359,6 +359,7 @@ export default function SummaryUI({ roomType: r.roomType, bedType: r.bedType, breakfast: r.breakfast, + roomFeatures: r.roomFeatures, }))} totalPrice={totalPrice} vat={vat} diff --git a/apps/scandic-web/components/HotelReservation/PriceDetailsModal/PriceDetailsTable/index.tsx b/apps/scandic-web/components/HotelReservation/PriceDetailsModal/PriceDetailsTable/index.tsx index 0a14d58cc..babb747a7 100644 --- a/apps/scandic-web/components/HotelReservation/PriceDetailsModal/PriceDetailsTable/index.tsx +++ b/apps/scandic-web/components/HotelReservation/PriceDetailsModal/PriceDetailsTable/index.tsx @@ -17,6 +17,7 @@ import type { BreakfastPackage } from "@/types/components/hotelReservation/enter import type { RoomPrice } from "@/types/components/hotelReservation/enterDetails/details" import type { Price } from "@/types/components/hotelReservation/price" import type { Child } from "@/types/components/hotelReservation/selectRate/selectRate" +import type { Packages } from "@/types/requests/packages" function Row({ label, @@ -70,6 +71,7 @@ interface PriceDetailsTableProps { roomPrice: RoomPrice bedType?: BedTypeSchema breakfast?: BreakfastPackage | false + roomFeatures?: Packages | null }[] totalPrice: Price vat: number @@ -117,6 +119,19 @@ export default function PriceDetailsTable({ room.roomPrice.perNight.local.currency )} /> + {room.roomFeatures + ? room.roomFeatures.map((feature) => ( + + )) + : null} {room.bedType ? (