fix: rename children to childrenInRoom

This commit is contained in:
Christel Westerberg
2025-01-14 12:25:17 +01:00
parent b2935114e3
commit bcae63e3fc
26 changed files with 104 additions and 91 deletions

View File

@@ -5,7 +5,7 @@ export type ChildBed = {
value: number
}
export type TGuestsRoom = Required<Pick<Room, "adults" | "children">>
export type TGuestsRoom = Required<Pick<Room, "adults" | "childrenInRoom">>
export type GuestsRoomPickerProps = {
index: number

View File

@@ -68,6 +68,6 @@ export type SelectHotelMapContainerProps = {
city: Location
selectHotelParams: SelectHotelSearchParams
adultsInRoom: number
childrenInRoom: string | undefined
child: Child[] | undefined
childrenInRoomString: string | undefined
childrenInRoom: Child[] | undefined
}

View File

@@ -48,7 +48,7 @@ export interface SelectHotelProps {
reservationParams: {
selectHotelParams: SelectHotelSearchParams
adultsInRoom: number
childrenInRoom: string | undefined
childrenInRoomArray: Child[] | undefined
childrenInRoomString: string | undefined
childrenInRoom: Child[] | undefined
}
}

View File

@@ -4,6 +4,6 @@ export interface SelectHotelSearchParams {
city: string
fromDate: string
toDate: string
rooms: Pick<Room, "adults" | "children">[]
[key: string]: string | string[] | Pick<Room, "adults" | "children">[]
rooms: Pick<Room, "adults" | "childrenInRoom">[]
[key: string]: string | string[] | Pick<Room, "adults" | "childrenInRoom">[]
}

View File

@@ -12,7 +12,7 @@ export interface Room {
roomTypeCode: string
rateCode: string
counterRateCode: string
children?: Child[]
childrenInRoom?: Child[]
packages?: RoomPackageCodeEnum[]
}