Skip to content

Commit

Permalink
chore(ts/components/vehicleMarker): convert Leaflet reference to na…
Browse files Browse the repository at this point in the history
…med import
  • Loading branch information
firestack committed Oct 17, 2024
1 parent f0cd071 commit 63ee608
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/src/components/map/markers/vehicleMarker.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Leaflet, { LatLngExpression } from "leaflet"
import { LatLngExpression, Marker } from "leaflet"
import React, {
PropsWithChildren,
useContext,
Expand Down Expand Up @@ -34,7 +34,7 @@ export const VehicleMarker = ({
onShouldShowPopupChange = () => {},
}: VehicleMarkerProps) => {
const [{ userSettings }] = useContext(StateDispatchContext)
const markerRef = useRef<Leaflet.Marker<any>>(null)
const markerRef = useRef<Marker<any>>(null)

const [isPopupVisible, setIsPopupVisible] = useState<boolean>(false)

Expand Down

0 comments on commit 63ee608

Please sign in to comment.