Fix: created util to handle searchParams for hotelreservation

This commit is contained in:
Pontus Dreij
2024-12-12 14:36:41 +01:00
parent ec0c6234ef
commit 50fc8a183c
6 changed files with 106 additions and 110 deletions

View File

@@ -1,7 +1,6 @@
import { Lang } from "@/constants/languages"
import type { CheckInData, Hotel, ParkingData } from "@/types/hotel"
import type { Location } from "@/types/trpc/routers/hotel/locations"
import type { Lang } from "@/constants/languages"
import type { SelectHotelSearchParams } from "./selectHotelSearchParams"
export enum AvailabilityEnum {
@@ -46,9 +45,9 @@ export interface SelectHotelProps {
lang: Lang
}
reservationParams: {
selectHotelParams: URLSearchParams
selectHotelParams: URLSearchParams | undefined
searchParams: SelectHotelSearchParams
adultsParams: number
childrenParams: string | undefined
adultsInRoom: number
childrenInRoom: string | undefined
}
}