Merged in feat/SW-1169-map-bedtype-icons (pull request #1113)
Feat/SW-1169 map bedtype icons * feat(SW-1169): Added bed icons * fix(SW-1169): update fill rule property * fix(SW-1169): update clip rule prop * feat(SW-1169): Added way of rendering bed type icons with extra beds * feat(SW-1169): update room schema to map mainBed to enum * feat(SW-1169): update bedtype icon color * feat(SW-1169): transform unknown bed types to BedTypeEnum.Other * test: update mock data with new schema Approved-by: Christel Westerberg
This commit is contained in:
@@ -4,6 +4,7 @@ import type {
|
||||
bedTypeFormSchema,
|
||||
bedTypeSchema,
|
||||
} from "@/components/HotelReservation/EnterDetails/BedType/schema"
|
||||
import type { BedTypeEnum, ExtraBedTypeEnum } from "@/constants/booking"
|
||||
|
||||
export type BedTypeSelection = {
|
||||
description: string
|
||||
@@ -12,6 +13,13 @@ export type BedTypeSelection = {
|
||||
max: number
|
||||
}
|
||||
value: string
|
||||
type: BedTypeEnum
|
||||
extraBed:
|
||||
| {
|
||||
description: string
|
||||
type: ExtraBedTypeEnum
|
||||
}
|
||||
| undefined
|
||||
}
|
||||
export type BedTypeProps = {
|
||||
bedTypes: BedTypeSelection[]
|
||||
|
||||
Reference in New Issue
Block a user