Merged in fix/hotel-pages-fix (pull request #1346)

fix: HotelPage restaurant navigation + translation

* fix: hotelPage restaurant navigation + translation


Approved-by: Erik Tiekstra
This commit is contained in:
Matilda Landström
2025-02-17 07:23:43 +00:00
parent 81643883ff
commit ef1d3ee065
7 changed files with 31 additions and 29 deletions

View File

@@ -4,6 +4,8 @@ import Subtitle from "@/components/TempDesignSystem/Text/Subtitle"
import Title from "@/components/TempDesignSystem/Text/Title"
import { getIntl } from "@/i18n"
import { translateWellnessType } from "../../HotelPage/utils"
import styles from "./sidebar.module.css"
import type { Hotel } from "@/types/hotel"
@@ -23,7 +25,7 @@ export default async function WellnessSidebar({ hotel }: WellnessSidebarProps) {
{hotel.healthFacilities.map((facility) => (
<div key={facility.type}>
<Subtitle type="two" color="uiTextHighContrast" asChild>
<h4>{intl.formatMessage({ id: facility.type })}</h4>
<h4>{translateWellnessType(facility.type, intl)}</h4>
</Subtitle>
<Body color="uiTextHighContrast">
{facility.openingDetails.openingHours.ordinary.alwaysOpen