feat: SW-276 Implemented Store usage

This commit is contained in:
Hrishikesh Vaipurkar
2024-10-07 00:40:50 +02:00
parent 8a04f840a2
commit 770c82e57a
17 changed files with 487 additions and 424 deletions
+5
View File
@@ -0,0 +1,5 @@
export enum BedTypeEnum {
"In adults bed" = 0,
"In crib" = 1,
"In extra bed" = 2,
}
@@ -13,40 +13,30 @@ export type GuestsRoom = {
children: Child[]
}
export type GuestsRoomsFormProps = {
name?: string
}
export interface GuestsRoomsPickerProps {
handleOnSelect: (selected: GuestsRoom[]) => void
initialSelected?: GuestsRoom[]
// handleOnSelect: (selected: GuestsRoom[]) => void
// initialSelected?: GuestsRoom[]
closePicker: () => void
isValid: boolean
// isValid: boolean
}
export type GuestsRoomPickerProps = {
handleOnSelect: (selected: GuestsRoom, index: number) => void
room: GuestsRoom
// handleOnSelect: (selected: GuestsRoom, index: number) => void
// room: GuestsRoom
index: number
isValid: boolean
// isValid: boolean
}
export type AdultSelectorProps = {
adults: number
updateAdults: (count: number) => void
roomIndex: number
}
export type ChildSelectorProps = {
roomChildren: Child[]
adultCount: number
updateChildren: (children: Child[]) => void
isValid: boolean
roomIndex: number
}
export type ChildInfoSelectorProps = {
child: Child
index: number
availableBedTypes?: ChildBed[]
updateChild: (child: Child, index: number) => void
isValid: boolean
roomIndex: number
}