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 FileUpload from './components/FileUpload';
|
||||||
import FilterPanel from './components/FilterPanel';
|
import FilterPanel from './components/FilterPanel';
|
||||||
import MapDisplay from './components/MapDisplay';
|
import MapDisplay from './components/MapDisplay';
|
||||||
|
import ErrorBoundary from './components/ErrorBoundary';
|
||||||
|
|
||||||
// Define types for our state
|
// Define types for our state
|
||||||
export interface FilterOptions {
|
export interface FilterOptions {
|
||||||
@@ -52,6 +53,7 @@ function App() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
<ErrorBoundary>
|
||||||
<div className="App">
|
<div className="App">
|
||||||
<header className="App-header">
|
<header className="App-header">
|
||||||
<h1>German PLZ Heatmap Tool</h1>
|
<h1>German PLZ Heatmap Tool</h1>
|
||||||
@@ -76,6 +78,7 @@ function App() {
|
|||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
</div>
|
</div>
|
||||||
|
</ErrorBoundary>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user