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:
@@ -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}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user