Merged in fix/SW-2598-gym (pull request #1942)

fix(SW-2598): gym opening hours

* fix(SW-2598): gym opening hours


Approved-by: Erik Tiekstra
This commit is contained in:
Matilda Landström
2025-05-05 09:53:02 +00:00
parent d2bbc59f47
commit dc201bf8ed

View File

@@ -17,7 +17,7 @@ export default async function Facility({ data }: FacilityProps) {
const shortDescription = data.content.texts.descriptions?.short
const isExternalGym =
data.type === "Gym" &&
data?.details.find((d) => d.name === "ExternalGym")?.value
data.details.find((d) => d.name === "ExternalGym")?.value === "True"
return (
<div className={styles.content}>
@@ -34,7 +34,7 @@ export default async function Facility({ data }: FacilityProps) {
<Typography variant="Title/Subtitle/lg" className={styles.title}>
<h3>{translateWellnessType(data.type, intl)}</h3>
</Typography>
{!isExternalGym ? (
{isExternalGym ? null : (
<div>
<Typography variant="Title/Subtitle/md">
<h4>
@@ -80,7 +80,7 @@ export default async function Facility({ data }: FacilityProps) {
</div>
</Typography>
</div>
) : null}
)}
{shortDescription ? (
<Typography variant="Body/Paragraph/mdRegular">
<p>{shortDescription}</p>