feat(SW-718): Created store for selectRate
This commit is contained in:
@@ -7,7 +7,6 @@ import type {
|
||||
RoomConfiguration,
|
||||
} from "@/server/routers/hotels/output"
|
||||
import type { RoomPackage } from "./roomFilter"
|
||||
import type { RateCode } from "./selectRate"
|
||||
|
||||
type ProductPrice = z.output<typeof productTypePriceSchema>
|
||||
export type RoomPriceSchema = z.output<typeof priceSchema>
|
||||
@@ -20,12 +19,11 @@ export type FlexibilityOptionProps = {
|
||||
priceInformation?: Array<string>
|
||||
roomTypeCode: RoomConfiguration["roomTypeCode"]
|
||||
petRoomPackage: RoomPackage | undefined
|
||||
handleSelectRate: React.Dispatch<React.SetStateAction<RateCode | undefined>>
|
||||
roomListIndex: number
|
||||
}
|
||||
|
||||
export interface PriceListProps {
|
||||
publicPrice?: ProductPrice | Record<string, never>
|
||||
memberPrice?: ProductPrice | Record<string, never>
|
||||
petRoomPackage?: RoomPackage | undefined
|
||||
petRoomPackage?: RoomPackage
|
||||
}
|
||||
|
||||
@@ -8,7 +8,6 @@ import type {
|
||||
} from "@/server/routers/hotels/output"
|
||||
import type { RoomPriceSchema } from "./flexibilityOption"
|
||||
import type { RoomPackageCodes, RoomPackageData } from "./roomFilter"
|
||||
import type { RateCode } from "./selectRate"
|
||||
|
||||
export type RoomCardProps = {
|
||||
hotelId: string
|
||||
@@ -18,7 +17,6 @@ export type RoomCardProps = {
|
||||
roomCategories: RoomData[]
|
||||
selectedPackages: RoomPackageCodes[]
|
||||
packages: RoomPackageData | undefined
|
||||
handleSelectRate: React.Dispatch<React.SetStateAction<RateCode | undefined>>
|
||||
roomListIndex: number
|
||||
}
|
||||
|
||||
|
||||
@@ -7,14 +7,12 @@ import type {
|
||||
RoomPackageCodes,
|
||||
RoomPackageData,
|
||||
} from "./roomFilter"
|
||||
import type { RateCode } from "./selectRate"
|
||||
|
||||
export interface RoomListProps {
|
||||
roomsAvailability: RoomsAvailability
|
||||
roomCategories: RoomData[]
|
||||
availablePackages: RoomPackageData | undefined
|
||||
selectedPackages: RoomPackageCodes[]
|
||||
setRateCode: React.Dispatch<React.SetStateAction<RateCode | undefined>>
|
||||
hotelType: string | undefined
|
||||
roomListIndex: number
|
||||
}
|
||||
@@ -32,7 +30,6 @@ export interface RoomSelectionPanelProps {
|
||||
roomCategories: RoomData[]
|
||||
availablePackages: RoomPackage[]
|
||||
selectedPackages: RoomPackageCodes[]
|
||||
setSelectedRate: React.Dispatch<React.SetStateAction<RateCode | undefined>>
|
||||
hotelType: string | undefined
|
||||
handleFilter: (
|
||||
filter: Record<RoomPackageCodeEnum, boolean | undefined>
|
||||
|
||||
Reference in New Issue
Block a user