feat(SW-914): back on track
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
export { default as AboutTheHotelSidePeek } from "./AboutTheHotel"
|
export { default as AboutTheHotelSidePeek } from "./AboutTheHotel"
|
||||||
|
export { default as AmenitiesSidePeek } from "./Amenities"
|
||||||
export { default as RoomSidePeek } from "./Room"
|
export { default as RoomSidePeek } from "./Room"
|
||||||
export { default as WellnessAndExerciseSidePeek } from "./WellnessAndExercise"
|
export { default as WellnessAndExerciseSidePeek } from "./WellnessAndExercise"
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ import { notFound } from "next/navigation"
|
|||||||
|
|
||||||
import {
|
import {
|
||||||
activities,
|
activities,
|
||||||
amenities,
|
|
||||||
meetingsAndConferences,
|
meetingsAndConferences,
|
||||||
restaurantAndBar,
|
restaurantAndBar,
|
||||||
} from "@/constants/routes/hotelPageParams"
|
} from "@/constants/routes/hotelPageParams"
|
||||||
@@ -30,6 +29,7 @@ import PreviewImages from "./PreviewImages"
|
|||||||
import { Rooms } from "./Rooms"
|
import { Rooms } from "./Rooms"
|
||||||
import {
|
import {
|
||||||
AboutTheHotelSidePeek,
|
AboutTheHotelSidePeek,
|
||||||
|
AmenitiesSidePeek,
|
||||||
RoomSidePeek,
|
RoomSidePeek,
|
||||||
WellnessAndExerciseSidePeek,
|
WellnessAndExerciseSidePeek,
|
||||||
} from "./SidePeeks"
|
} from "./SidePeeks"
|
||||||
@@ -75,6 +75,7 @@ export default async function HotelPage({ hotelId }: HotelPageProps) {
|
|||||||
hotelFacts,
|
hotelFacts,
|
||||||
location,
|
location,
|
||||||
ratings,
|
ratings,
|
||||||
|
parking,
|
||||||
} = hotelData.data.attributes
|
} = hotelData.data.attributes
|
||||||
const roomCategories =
|
const roomCategories =
|
||||||
hotelData.included?.filter((item) => item.type === "roomcategories") || []
|
hotelData.included?.filter((item) => item.type === "roomcategories") || []
|
||||||
@@ -178,13 +179,11 @@ export default async function HotelPage({ hotelId }: HotelPageProps) {
|
|||||||
) : null}
|
) : null}
|
||||||
<SidePeekProvider>
|
<SidePeekProvider>
|
||||||
{/* eslint-disable import/no-named-as-default-member */}
|
{/* eslint-disable import/no-named-as-default-member */}
|
||||||
<SidePeek
|
<AmenitiesSidePeek
|
||||||
contentKey={amenities[lang]}
|
amenitiesList={detailedFacilities}
|
||||||
title={intl.formatMessage({ id: "Amenities" })}
|
parking={parking}
|
||||||
>
|
checkInInformation={hotelFacts.checkin}
|
||||||
{/* TODO: Render amenities as per the design. */}
|
/>
|
||||||
Read more about the amenities here
|
|
||||||
</SidePeek>
|
|
||||||
<AboutTheHotelSidePeek
|
<AboutTheHotelSidePeek
|
||||||
hotelAddress={address}
|
hotelAddress={address}
|
||||||
coordinates={location}
|
coordinates={location}
|
||||||
|
|||||||
Reference in New Issue
Block a user