Skip to content

Commit

Permalink
#3045: Added links to location marker popups
Browse files Browse the repository at this point in the history
LinkTo doesn't work in different entry point, need to sync histories
  • Loading branch information
cemalettin-work authored and ysf-simsoft committed Nov 26, 2020
1 parent 49af6ea commit 8652ed2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions client/src/components/Leaflet.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,10 +279,13 @@ const BaseLeaflet = ({
})
.bindPopup(popupContent)
.on("popupopen", e => {
// TODO LinkTo component will be utilized here to provide routing
ReactDOM.render(
<>
<b>{location.name}</b> @{" "}
<b>
{/* // TODO: Find a way to work with LinkTo in different entry point here, not nested inside Router context */}
<a href={`/locations/${location.uuid}`}>{location.name}</a>
</b>{" "}
@{" "}
<GeoLocation
coordinates={{
lat: location.lat,
Expand Down

0 comments on commit 8652ed2

Please sign in to comment.