Merged in fix/SW-2846-bedtype-measurements- (pull request #2682)

fix(SW-2846): Updated Bed Option to hide size when custom occupancy type

* fix(SW-2846): Updated Bed Option to hide size when custom occupancy type


Approved-by: Erik Tiekstra
Approved-by: Matilda Landström
This commit is contained in:
Hrishikesh Vaipurkar
2025-08-22 07:45:01 +00:00
parent 6a0675525d
commit ce3b7a6a49

View File

@@ -6,6 +6,10 @@ import { FormProvider, useForm } from "react-hook-form"
import { BED_TYPE_ICONS } from "@scandic-hotels/booking-flow/bedTypeIcons"
import RadioCard from "@scandic-hotels/design-system/Form/RadioCard"
import {
BedTypeEnum,
type ExtraBedTypeEnum,
} from "@scandic-hotels/trpc/enums/bedType"
import { useEnterDetailsStore } from "@/stores/enter-details"
@@ -17,10 +21,6 @@ import { bedTypeFormSchema } from "./schema"
import styles from "./bedOptions.module.css"
import type { IconProps } from "@scandic-hotels/design-system/Icons"
import type {
BedTypeEnum,
ExtraBedTypeEnum,
} from "@scandic-hotels/trpc/enums/bedType"
import type { BedTypeFormSchema } from "@/types/components/hotelReservation/enterDetails/bedType"
@@ -101,7 +101,9 @@ export default function BedType() {
disabled={!bedAvailable && !isSameBedAsSelected}
id={roomType.value}
name="bedType"
subtitle={width}
subtitle={
roomType.type !== BedTypeEnum.CustomOccupancy ? width : null
}
title={roomType.description}
value={roomType.value}
/>