fix([2fd88f42]): add react error boundary to debug blank page
This commit is contained in:
@@ -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,6 +53,7 @@ function App() {
|
||||
};
|
||||
|
||||
return (
|
||||
<ErrorBoundary>
|
||||
<div className="App">
|
||||
<header className="App-header">
|
||||
<h1>German PLZ Heatmap Tool</h1>
|
||||
@@ -76,6 +78,7 @@ function App() {
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
</ErrorBoundary>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user