Merged in feat/BOOK-747-alert-extra-cost (pull request #3455)

feat(BOOK-747): show extra cost alert if reward night or voucher

* feat(BOOK-747): show extra cost alert if reward night or voucher

* feat(BOOK-747): use enum

* feat(BOOK-747): refactor

* feat(BOOK-747): add underline to trigger text


Approved-by: Anton Gunnarsson
This commit is contained in:
Bianca Widstam
2026-01-20 11:51:24 +00:00
parent 5af64ef896
commit 2dd08bb5d0
13 changed files with 224 additions and 184 deletions

View File

@@ -14,6 +14,7 @@ import { useSelectRateContext } from "../../../contexts/SelectRate/SelectRateCon
import useLang from "../../../hooks/useLang"
import { mapPackageToLabel } from "../../../utils/getRoomFeatureDescription"
import { trackLowestRoomPrice, trackRoomsLoaded } from "../Tracking/tracking"
import ExtraCostAlert from "./ExtraCostAlert"
import { RateSummary } from "./RateSummary"
import Rooms from "./Rooms"
import { RoomsContainerSkeleton } from "./RoomsContainerSkeleton"
@@ -23,7 +24,8 @@ import styles from "./index.module.css"
import type { HotelData } from "@scandic-hotels/trpc/types/hotel"
interface RoomsContainerProps
extends Pick<HotelData, "roomCategories">,
extends
Pick<HotelData, "roomCategories">,
Pick<HotelData["hotel"], "hotelType" | "vat"> {}
export function RoomsContainer({}: RoomsContainerProps) {
@@ -139,6 +141,7 @@ export function RoomsContainer({}: RoomsContainerProps) {
return (
<>
<ExtraCostAlert />
<Rooms />
<RateSummary />
</>