Skip to content

Commit

Permalink
fixed playground page breaking
Browse files Browse the repository at this point in the history
  • Loading branch information
Dannysht committed Nov 22, 2024
1 parent 5e413f8 commit 86724e4
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions frontend/src/Components/Common/InfoCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,14 @@ export const InfoCard = (props) => {
color: '#ffc107',
}}><path d="M12 .587l3.668 7.568 8.332 1.151-6.064 5.787 1.615 8.162-7.551-4.008L4.449 23.255 6.064 15.093 0 9.305l8.332-1.15z" /></svg></p>
<div>{props.description}</div>
{console.log(props.ageGroups)}
<div id="age" className="card" style={{ marginBottom: "5px" }}>
<span><ChildIcon className="icon" />Деца между {
props.ageGroups.forEach((age) => { return ageGroups[age] })
} години.</span>
<span>
<ChildIcon className="icon" />
Деца между {props.ageGroups?.map((age) => ageGroups[age] ?? "N/A").join(", ")} години.
</span>
</div>

<div id="playgroundLocation" className="card">
<span><ParkIcon className="icon" />{props.environment}</span>
</div>
Expand Down

0 comments on commit 86724e4

Please sign in to comment.