feat: add place gate population scripts, map style assets, automated cron sync tasks, and expand dashboard and landing applications

This commit is contained in:
Hamza-Ayed
2026-09-19 21:22:05 +03:00
parent 82b1045f9c
commit ce31d79ba6
76 changed files with 118969 additions and 115428 deletions
+8 -3
View File
@@ -34,7 +34,7 @@ function App() {
const [weatherAlerts, setWeatherAlerts] = useState<any[]>([]);
// Tourism & Heritage State
const [tourismMode, setTourismMode] = useState(true);
const [tourismMode, setTourismMode] = useState(false);
const [heritageLandmarks, setHeritageLandmarks] = useState<HeritageLandmarkData[]>([]);
const [selectedLandmark, setSelectedLandmark] = useState<HeritageLandmarkData | null>(null);
const [showContributeModal, setShowContributeModal] = useState(false);
@@ -67,8 +67,13 @@ function App() {
};
useEffect(() => {
fetchHeritageLandmarks();
}, []);
if (tourismMode) {
fetchHeritageLandmarks();
} else {
setHeritageLandmarks([]);
setSelectedLandmark(null);
}
}, [tourismMode]);
const handleNavigateToGate = (lat: number, lng: number, name: string) => {
setDestText(`${lat.toFixed(5)}, ${lng.toFixed(5)}`);