From c25963a3b7ae424184c2392153513bd76180a387 Mon Sep 17 00:00:00 2001 From: Erik Tiekstra Date: Mon, 3 Feb 2025 13:35:48 +0000 Subject: [PATCH] Merged in feat/SW-1066-wellness-subpage (pull request #1239) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Feat/SW-1066 wellness subpage * feat(SW-1066): added wellness subpage Approved-by: Fredrik Thorsson Approved-by: Matilda Landström --- .../SidePeeks/WellnessAndExercise/index.tsx | 6 +- components/ContentType/HotelPage/index.tsx | 1 + .../additionalContent.module.css | 0 .../HotelSubpage/AdditionalContent/index.tsx | 24 ++++++ .../HtmlContent/htmlContent.module.css | 2 + .../HotelSubpage/HtmlContent/index.tsx | 16 ++++ .../HotelSubpage/Sidebar/WellnessSidebar.tsx | 79 +++++++++++++++++++ .../HotelSubpage/Sidebar/index.tsx | 25 ++++++ .../HotelSubpage/Sidebar/sidebar.module.css | 4 + .../HotelSubpage/hotelSubpage.module.css | 47 +++-------- components/ContentType/HotelSubpage/index.tsx | 52 ++++++++---- components/ContentType/HotelSubpage/utils.ts | 30 +++++-- .../TempDesignSystem/Breadcrumbs/variants.ts | 1 + constants/routes/hotelSubpages.ts | 9 +++ .../hotelPage/sidepeek/wellnessAndExercise.ts | 2 +- 15 files changed, 237 insertions(+), 61 deletions(-) create mode 100644 components/ContentType/HotelSubpage/AdditionalContent/additionalContent.module.css create mode 100644 components/ContentType/HotelSubpage/AdditionalContent/index.tsx create mode 100644 components/ContentType/HotelSubpage/HtmlContent/htmlContent.module.css create mode 100644 components/ContentType/HotelSubpage/HtmlContent/index.tsx create mode 100644 components/ContentType/HotelSubpage/Sidebar/WellnessSidebar.tsx create mode 100644 components/ContentType/HotelSubpage/Sidebar/index.tsx create mode 100644 components/ContentType/HotelSubpage/Sidebar/sidebar.module.css diff --git a/components/ContentType/HotelPage/SidePeeks/WellnessAndExercise/index.tsx b/components/ContentType/HotelPage/SidePeeks/WellnessAndExercise/index.tsx index 6d690a643..50cac7c9a 100644 --- a/components/ContentType/HotelPage/SidePeeks/WellnessAndExercise/index.tsx +++ b/components/ContentType/HotelPage/SidePeeks/WellnessAndExercise/index.tsx @@ -1,4 +1,5 @@ import { wellnessAndExercise } from "@/constants/routes/hotelPageParams" +import { wellnessSubPage } from "@/constants/routes/hotelSubpages" import Button from "@/components/TempDesignSystem/Button" import Link from "@/components/TempDesignSystem/Link" @@ -14,7 +15,7 @@ import type { WellnessAndExerciseSidePeekProps } from "@/types/components/hotelP export default async function WellnessAndExerciseSidePeek({ healthFacilities, - wellnessExerciseButton, + wellnessExerciseButton = false, spaPage, }: WellnessAndExerciseSidePeekProps) { const intl = await getIntl() @@ -42,9 +43,10 @@ export default async function WellnessAndExerciseSidePeek({ {wellnessExerciseButton && (