chore: Cleanup booking widget with types and other minor issues
This commit is contained in:
@@ -5,7 +5,7 @@ export type ChildBed = {
|
||||
value: number
|
||||
}
|
||||
|
||||
export type TGuestsRoom = Required<Pick<Room, "adults" | "childrenInRoom">>
|
||||
export type GuestsRoom = Required<Pick<Room, "adults" | "childrenInRoom">>
|
||||
|
||||
export type GuestsRoomPickerProps = {
|
||||
index: number
|
||||
|
||||
@@ -7,7 +7,7 @@ import type {
|
||||
bookingWidgetSchema,
|
||||
} from "@/components/Forms/BookingWidget/schema"
|
||||
import type { bookingWidgetVariants } from "@/components/Forms/BookingWidget/variants"
|
||||
import type { TGuestsRoom } from "./guestsRoomsPicker"
|
||||
import type { GuestsRoom } from "./guestsRoomsPicker"
|
||||
|
||||
export type BookingWidgetSchema = z.output<typeof bookingWidgetSchema>
|
||||
export type BookingCodeSchema = z.output<typeof bookingCodeSchema>
|
||||
@@ -17,7 +17,7 @@ export type BookingWidgetSearchData = {
|
||||
hotel?: string
|
||||
fromDate?: string
|
||||
toDate?: string
|
||||
rooms?: TGuestsRoom[]
|
||||
rooms?: GuestsRoom[]
|
||||
bookingCode?: string
|
||||
searchType?: "redemption"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user