diff --git a/components/ops/Map/MapView.tsx b/components/ops/Map/MapView.tsx index 29d33ed..51231b7 100644 --- a/components/ops/Map/MapView.tsx +++ b/components/ops/Map/MapView.tsx @@ -77,6 +77,7 @@ export default function MapView({ const [activeBusinessId, setActiveBusinessId] = useState(null); const [flyToTarget, setFlyToTarget] = useState<{ lat: number; lng: number; key: number } | null>(null); const cardRefs = useRef>({}); + const fileInputRef = useRef(null); const BRENDON_UUID = "b15b3634-51b4-493a-a80b-662f219164ca"; const TAFADZWA_UUID = "458fc192-05a2-472b-9ade-c22cd16ad0e3"; @@ -210,6 +211,11 @@ export default function MapView({ }); } + const handleAddPhotoClick = useCallback(() => { + console.log("[MapView] Add photo button clicked"); + fileInputRef.current?.click(); + }, []); + async function handlePhotoUpload(file: File) { if (!selected || isUploadingPhoto) return; setIsUploadingPhoto(true); @@ -430,20 +436,25 @@ export default function MapView({ ))} -