refactor: url management in hotel reservation flow

This commit is contained in:
Christel Westerberg
2025-01-13 14:26:38 +01:00
parent 23ff0970e9
commit b2935114e3
48 changed files with 407 additions and 418 deletions

View File

@@ -1,11 +1,11 @@
import type { BedTypeSchema } from "@/types/components/hotelReservation/enterDetails/bedType"
import type { BookingData } from "@/types/components/hotelReservation/enterDetails/bookingData"
import type { BreakfastPackage } from "@/types/components/hotelReservation/enterDetails/breakfast"
import type {
DetailsSchema,
SignedInDetailsSchema,
} from "@/types/components/hotelReservation/enterDetails/details"
import type { StepEnum } from "@/types/enums/step"
import type { SelectRateSearchParams } from "../components/hotelReservation/selectRate/selectRate"
import type { DetailsProviderProps } from "../providers/enter-details"
import type { Packages } from "../requests/packages"
@@ -26,7 +26,7 @@ export interface Price {
export interface FormValues {
bedType: BedTypeSchema | undefined
booking: BookingData
booking: SelectRateSearchParams
breakfast: BreakfastPackage | false | undefined
guest: DetailsSchema | SignedInDetailsSchema
}
@@ -46,7 +46,7 @@ export interface DetailsState {
updateSeachParamString: (searchParamString: string) => void
}
bedType: BedTypeSchema | undefined
booking: BookingData
booking: SelectRateSearchParams
breakfast: BreakfastPackage | false | undefined
currentStep: StepEnum
formValues: FormValues