MCPcopy Create free account
hub / github.com/codealong-dev/ride-sharing / handleMapClick

Function handleMapClick

web/src/components/DriverMap.tsx:65–70  ·  view source on GitHub ↗
(e: L.LeafletMouseEvent)

Source from the content-addressed store, hash-verified

63 })
64
65 const handleMapClick = (e: L.LeafletMouseEvent) => {
66 setRiderLocation({
67 latitude: e.latlng.lat,
68 longitude: e.latlng.lng
69 })
70 }
71
72 const handleAcceptTrip = () => {
73 if (!requestedTrip || !requestedTrip.id || !driver) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected