Merged in feat/SW-1066-wellness-subpage (pull request #1239)
Feat/SW-1066 wellness subpage * feat(SW-1066): added wellness subpage Approved-by: Fredrik Thorsson Approved-by: Matilda Landström
This commit is contained in:
@@ -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 && (
|
||||
<Button fullWidth theme="base" intent="secondary" asChild>
|
||||
<Link
|
||||
href={wellnessExerciseButton}
|
||||
href={`/${wellnessSubPage[lang]}`}
|
||||
weight="bold"
|
||||
color="burgundy"
|
||||
appendToCurrentPath
|
||||
>
|
||||
{intl.formatMessage({ id: "Show wellness & exercise" })}
|
||||
</Link>
|
||||
|
||||
@@ -231,6 +231,7 @@ export default async function HotelPage({ hotelId }: HotelPageProps) {
|
||||
<WellnessAndExerciseSidePeek
|
||||
healthFacilities={healthFacilities}
|
||||
spaPage={spaPage?.spa_page}
|
||||
wellnessExerciseButton={displayWebPage.healthGym}
|
||||
/>
|
||||
<RestaurantBarSidePeek restaurants={restaurants} />
|
||||
{activitiesCards.map((card) => (
|
||||
|
||||
Reference in New Issue
Block a user