diff --git a/heatmap-tool/frontend/src/App.tsx b/heatmap-tool/frontend/src/App.tsx index 81824e3a..5a2bcfe4 100644 --- a/heatmap-tool/frontend/src/App.tsx +++ b/heatmap-tool/frontend/src/App.tsx @@ -4,6 +4,7 @@ import './App.css'; import FileUpload from './components/FileUpload'; import FilterPanel from './components/FilterPanel'; import MapDisplay from './components/MapDisplay'; +import ErrorBoundary from './components/ErrorBoundary'; // Define types for our state export interface FilterOptions { @@ -52,30 +53,32 @@ function App() { }; return ( -
-
-

German PLZ Heatmap Tool

-
-
-
- - + +
+
+

German PLZ Heatmap Tool

+
+
+
+ + +
+
+ {isLoading &&

Loading map data...

} + {error &&

{error}

} + +
+
-
- {isLoading &&

Loading map data...

} - {error &&

{error}

} - -
-
-
+ ); }