Merged in fix/hoteinfocard-pass-hotel (pull request #1295)
feat:hotel info card - pass hoteldata since we already fetching it on page level * feat:hotel info card - pass hoteldata since we already fetching it on page level
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
import { getHotel } from "@/lib/trpc/memoizedRequests"
|
||||
|
||||
import { mapFacilityToIcon } from "@/components/ContentType/HotelPage/data"
|
||||
import ImageGallery from "@/components/ImageGallery"
|
||||
import SkeletonShimmer from "@/components/SkeletonShimmer"
|
||||
@@ -19,16 +17,7 @@ import styles from "./hotelInfoCard.module.css"
|
||||
|
||||
import type { HotelInfoCardProps } from "@/types/components/hotelReservation/selectRate/hotelInfoCard"
|
||||
|
||||
export default async function HotelInfoCard({
|
||||
hotelId,
|
||||
lang,
|
||||
}: HotelInfoCardProps) {
|
||||
const hotelData = await getHotel({
|
||||
hotelId: hotelId.toString(),
|
||||
isCardOnlyPayment: false,
|
||||
language: lang,
|
||||
})
|
||||
|
||||
export default async function HotelInfoCard({ hotelData }: HotelInfoCardProps) {
|
||||
const hotel = hotelData?.hotel
|
||||
const intl = await getIntl()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user