Skip to content

Commit

Permalink
fixup! refactor: Create separate LocationMarkerIcon component
Browse files Browse the repository at this point in the history
  • Loading branch information
joshlarson committed Nov 14, 2023
1 parent f486ca2 commit dba1e26
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions assets/src/components/map/markers/locationMarker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,13 @@ import { LocationSearchResult } from "../../../models/locationSearchResult"
import { LocationDotIcon } from "../../../helpers/icon"
import Leaflet from "leaflet"

export const LocationMarkerIcon = ({ selected }: { selected?: boolean }) => {
return (
<LocationDotIcon
className={
"c-location-dot-icon" +
(selected ? " c-location-dot-icon--selected" : "")
}
/>
)
}
export const LocationMarkerIcon = ({ selected }: { selected?: boolean }) => (
<LocationDotIcon
className={
"c-location-dot-icon" + (selected ? " c-location-dot-icon--selected" : "")
}
/>
)

export const LocationMarker = ({
location,
Expand Down

0 comments on commit dba1e26

Please sign in to comment.