feat(SW-718) created useRoomFilteringStore
This commit is contained in:
@@ -19,9 +19,9 @@ export interface FilterValues {
|
||||
}
|
||||
export interface RoomFilterProps {
|
||||
numberOfRooms: number
|
||||
onFilter: (filter: Record<string, boolean | undefined>) => void
|
||||
filterOptions: DefaultFilterOptions[]
|
||||
initialFilterValues: FilterValues
|
||||
roomListIndex: number
|
||||
}
|
||||
|
||||
export type RoomPackage = z.output<typeof packagesSchema>
|
||||
|
||||
@@ -3,7 +3,6 @@ import type { RoomsAvailability } from "@/server/routers/hotels/output"
|
||||
import type {
|
||||
DefaultFilterOptions,
|
||||
RoomPackage,
|
||||
RoomPackageCodeEnum,
|
||||
RoomPackageCodes,
|
||||
RoomPackageData,
|
||||
} from "./roomFilter"
|
||||
@@ -26,14 +25,10 @@ export interface SelectRateProps {
|
||||
}
|
||||
|
||||
export interface RoomSelectionPanelProps {
|
||||
rooms: RoomsAvailability
|
||||
roomCategories: RoomData[]
|
||||
availablePackages: RoomPackage[]
|
||||
selectedPackages: RoomPackageCodes[]
|
||||
hotelType: string | undefined
|
||||
handleFilter: (
|
||||
filter: Record<RoomPackageCodeEnum, boolean | undefined>
|
||||
) => void
|
||||
defaultPackages: DefaultFilterOptions[]
|
||||
roomListIndex: number
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user