SW-454 Use the API on select room page

This commit is contained in:
Niclas Edenvin
2024-10-08 15:22:51 +02:00
committed by Pontus Dreij
parent 23953aeb61
commit c2c1a676ca
12 changed files with 348 additions and 92 deletions

View File

@@ -1,8 +1,8 @@
import { Product, RateDefinition } from "@/server/routers/hotels/output"
export type FlexibilityOptionProps = {
product: Product | undefined
name: string
value: string
paymentTerm: string
standardPrice: number
memberPrice: number
currency: string
}

View File

@@ -1,8 +1,9 @@
import { Rate } from "@/server/routers/hotels/output"
import {
RateDefinition,
RoomConfiguration,
} from "@/server/routers/hotels/output"
export type RoomCardProps = {
room: Rate
nrOfNights: number
nrOfAdults: number
breakfastIncluded: boolean
roomConfiguration: RoomConfiguration
rateDefinitions: RateDefinition[]
}

View File

@@ -1,7 +1,5 @@
import { Rate } from "@/server/routers/hotels/output"
import { RoomsAvailability } from "@/server/routers/hotels/output"
export interface RoomSelectionProps {
rates: Rate[]
nrOfAdults: number
nrOfNights: number
roomConfigurations: RoomsAvailability
}