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