wip
This commit is contained in:
@@ -1,9 +1,7 @@
|
|||||||
import { Suspense, useEffect } from "react"
|
import { Suspense } from "react"
|
||||||
import { useIntl } from "react-intl"
|
|
||||||
|
|
||||||
import { Lang } from "@/constants/languages"
|
import { Lang } from "@/constants/languages"
|
||||||
import { getHotelData } from "@/lib/trpc/memoizedRequests"
|
import { getHotelData } from "@/lib/trpc/memoizedRequests"
|
||||||
import useRoomAvailableStore from "@/stores/roomAvailability"
|
|
||||||
|
|
||||||
import { mapFacilityToIcon } from "@/components/ContentType/HotelPage/data"
|
import { mapFacilityToIcon } from "@/components/ContentType/HotelPage/data"
|
||||||
import ImageGallery from "@/components/ImageGallery"
|
import ImageGallery from "@/components/ImageGallery"
|
||||||
|
|||||||
@@ -6,7 +6,6 @@ import {
|
|||||||
getProfileSafely,
|
getProfileSafely,
|
||||||
getRoomAvailability,
|
getRoomAvailability,
|
||||||
} from "@/lib/trpc/memoizedRequests"
|
} from "@/lib/trpc/memoizedRequests"
|
||||||
import { serverClient } from "@/lib/trpc/server"
|
|
||||||
|
|
||||||
import { safeTry } from "@/utils/safeTry"
|
import { safeTry } from "@/utils/safeTry"
|
||||||
|
|
||||||
@@ -63,7 +62,8 @@ export async function RoomsContainer({
|
|||||||
roomStayStartDate: fromDateString,
|
roomStayStartDate: fromDateString,
|
||||||
roomStayEndDate: toDateString,
|
roomStayEndDate: toDateString,
|
||||||
adults: adultCount,
|
adults: adultCount,
|
||||||
children: generateChildrenString(childArray),
|
children:
|
||||||
|
childArray.length > 0 ? generateChildrenString(childArray) : undefined,
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -73,7 +73,7 @@ export async function RoomsContainer({
|
|||||||
await roomsAvailabilityPromise
|
await roomsAvailabilityPromise
|
||||||
|
|
||||||
if (packagesError) {
|
if (packagesError) {
|
||||||
console.error("packagesError", { ...packagesError })
|
console.error("packagesError", packagesError)
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>Unable to get packages. {JSON.stringify({ ...packagesError })}</div>
|
<div>Unable to get packages. {JSON.stringify({ ...packagesError })}</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user