Added styled item and trash icons

Related to #12
This commit is contained in:
2023-07-14 18:33:36 +03:00
parent ad290c8dd0
commit 7ef4194bbd
6 changed files with 26 additions and 3 deletions

View File

@ -2,6 +2,7 @@ import { Marker, Popup, useMapEvents } from 'react-leaflet'
import { LatLng } from 'leaflet'
import { SetState } from '../utils/types'
import { iconItem } from '../utils/markerIcons'
type LocationMarkerProps = {
address: string,
@ -24,7 +25,7 @@ const LocationMarker = ({ address, position, setPosition }: LocationMarkerProps)
})
return (
<Marker position={position}>
<Marker icon={iconItem} position={position}>
<Popup>
{address}
{position.lat.toFixed(4)}, {position.lng.toFixed(4)}