Merge in feat/SW-415-select-room-card (pull request #663)
Feat/SW-415 select room card
This commit is contained in:
@@ -1,8 +1,18 @@
|
||||
import { Product, RateDefinition } from "@/server/routers/hotels/output"
|
||||
import { z } from "zod"
|
||||
|
||||
import { Product, productTypePriceSchema } from "@/server/routers/hotels/output"
|
||||
|
||||
type ProductPrice = z.output<typeof productTypePriceSchema>
|
||||
|
||||
export type FlexibilityOptionProps = {
|
||||
product: Product | undefined
|
||||
name: string
|
||||
value: string
|
||||
paymentTerm: string
|
||||
priceInformation?: Array<string>
|
||||
}
|
||||
|
||||
export interface PriceListProps {
|
||||
publicPrice?: ProductPrice | Record<string, never>
|
||||
memberPrice?: ProductPrice | Record<string, never>
|
||||
}
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
import type { PopoverProps } from "react-aria-components"
|
||||
|
||||
export interface PricePopoverProps extends Omit<PopoverProps, "children"> {
|
||||
children: React.ReactNode
|
||||
}
|
||||
@@ -3,7 +3,10 @@ import {
|
||||
RoomConfiguration,
|
||||
} from "@/server/routers/hotels/output"
|
||||
|
||||
import { RoomData } from "@/types/hotel"
|
||||
|
||||
export type RoomCardProps = {
|
||||
roomConfiguration: RoomConfiguration
|
||||
rateDefinitions: RateDefinition[]
|
||||
roomCategories: RoomData[]
|
||||
}
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
import { RoomsAvailability } from "@/server/routers/hotels/output"
|
||||
|
||||
import { RoomData } from "@/types/hotel"
|
||||
|
||||
export interface RoomSelectionProps {
|
||||
roomConfigurations: RoomsAvailability
|
||||
roomCategories: RoomData[]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user