feat(SW-914): back on track

This commit is contained in:
Fredrik Thorsson
2024-11-27 09:52:42 +01:00
parent 43f9a21a47
commit 384f044dac
2 changed files with 8 additions and 8 deletions

View File

@@ -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"

View File

@@ -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}