Skip to content

Commit

Permalink
feat(city): Add and display city in planner
Browse files Browse the repository at this point in the history
  • Loading branch information
annelhote committed Sep 5, 2024
1 parent 9691d72 commit 82e61a2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/planner/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ function Row(props: { row: ReturnType<typeof createData> }) {
/>{" "}
{capitalize(marker.label)}
</StyledTableCell>
<StyledTableCell>
{marker?.addrCity}
</StyledTableCell>
<StyledTableCell>
{marker?.opening_hours}
</StyledTableCell>
Expand Down Expand Up @@ -184,6 +187,7 @@ const Planner = ({ gpx, markers, selectedFilters }) => {
<StyledTableCell>Nom</StyledTableCell>
<StyledTableCell>Distance du départ</StyledTableCell>
<StyledTableCell>Type</StyledTableCell>
<StyledTableCell>Ville</StyledTableCell>
<StyledTableCell>Heures d'ouverture</StyledTableCell>
</TableRow>
</TableHead>
Expand Down
1 change: 1 addition & 0 deletions src/pages/trail.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ const Trail = () => {
item?.tags?.railway ??
"";
return {
addrCity: item?.tags?.["addr:city"],
addrHousenumber: item?.tags?.["addr:housenumber"],
addrStreet: item?.tags?.["addr:street"],
day: (index + 1).toString(),
Expand Down

0 comments on commit 82e61a2

Please sign in to comment.