Merged in feature/select-room-ux-one-page (pull request #523)
This updates the select room page according to the new UX. It has different sections on the same page, but with specific URLs per section. Since neither UX, UI nor API is completely done both design and data structures are a bit temporary. Approved-by: Simon.Emanuelsson
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
export type FlexibilityOptionProps = {
|
||||
name: string
|
||||
value: string
|
||||
paymentTerm: string
|
||||
standardPrice: number
|
||||
memberPrice: number
|
||||
currency: string
|
||||
}
|
||||
@@ -1,3 +1,8 @@
|
||||
import { Rate } from "@/server/routers/hotels/output"
|
||||
|
||||
export type RoomCardProps = { room: Rate }
|
||||
export type RoomCardProps = {
|
||||
room: Rate
|
||||
nrOfNights: number
|
||||
nrOfAdults: number
|
||||
breakfastIncluded: boolean
|
||||
}
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
import { Rate } from "@/server/routers/hotels/output"
|
||||
|
||||
export type RoomSelectionProps = {
|
||||
rooms: Rate[]
|
||||
}
|
||||
40
types/components/hotelReservation/selectRate/section.ts
Normal file
40
types/components/hotelReservation/selectRate/section.ts
Normal file
@@ -0,0 +1,40 @@
|
||||
import { Rate } from "@/server/routers/hotels/output"
|
||||
|
||||
export interface SectionProps {
|
||||
nextPath: string
|
||||
}
|
||||
|
||||
export interface BedSelectionProps extends SectionProps {
|
||||
alternatives: {
|
||||
value: string
|
||||
name: string
|
||||
payment: string
|
||||
pricePerNight: number
|
||||
membersPricePerNight: number
|
||||
currency: string
|
||||
}[]
|
||||
}
|
||||
|
||||
export interface BreakfastSelectionProps extends SectionProps {
|
||||
alternatives: {
|
||||
value: string
|
||||
name: string
|
||||
payment: string
|
||||
pricePerNight: number
|
||||
currency: string
|
||||
}[]
|
||||
}
|
||||
|
||||
export interface RoomSelectionProps extends SectionProps {
|
||||
alternatives: Rate[]
|
||||
nrOfAdults: number
|
||||
nrOfNights: number
|
||||
}
|
||||
|
||||
export interface SectionPageProps {
|
||||
breakfast?: string
|
||||
bed?: string
|
||||
fromDate: string
|
||||
toDate: string
|
||||
room: { adults: number; child: { age: number; bed: number }[] }[]
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
export interface SectionAccordionProps {
|
||||
header: string
|
||||
selection?: string | string[]
|
||||
path: string
|
||||
}
|
||||
Reference in New Issue
Block a user