Merged in fix/SW-1103-page-loading (pull request #1181)

Fix/SW-1103 page loading

* feat(SW-1103): Move backend req behinde suspense

* fix/SW-1103 fix merge conflicts


Approved-by: Joakim Jäderberg
This commit is contained in:
Pontus Dreij
2025-01-24 10:16:30 +00:00
parent 9ff976cde1
commit 7343d873c2
8 changed files with 63 additions and 77 deletions

View File

@@ -65,9 +65,5 @@ export interface HotelCardDialogListingProps {
}
export type SelectHotelMapContainerProps = {
city: Location
selectHotelParams: SelectHotelSearchParams
adultsInRoom: number
childrenInRoomString: string | undefined
childrenInRoom: Child[] | undefined
searchParams: SelectHotelSearchParams
}

View File

@@ -1,7 +1,5 @@
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 { Child } from "../selectRate/selectRate"
import type { SelectHotelSearchParams } from "./selectHotelSearchParams"
export enum AvailabilityEnum {
@@ -41,14 +39,8 @@ export interface MeetingsAndConferencesProps {
}
export interface SelectHotelProps {
city: Location
params: {
lang: Lang
}
reservationParams: {
selectHotelParams: SelectHotelSearchParams
adultsInRoom: number
childrenInRoomString: string | undefined
childrenInRoom: Child[] | undefined
}
searchParams: SelectHotelSearchParams
}