Add error boundary

This commit is contained in:
Philipp Heckel 2022-03-10 15:37:50 -05:00
parent 840cb5b182
commit ccb9da9333
17 changed files with 13649 additions and 18020 deletions

View file

@ -31,21 +31,21 @@ import {useAutoSubscribe, useConnectionListeners} from "./hooks";
const App = () => {
return (
<ErrorBoundary>
<BrowserRouter>
<ThemeProvider theme={theme}>
<CssBaseline/>
<BrowserRouter>
<ThemeProvider theme={theme}>
<CssBaseline/>
<ErrorBoundary>
<Routes>
<Route element={<Layout/>}>
<Route path={routes.root} element={<AllSubscriptions/>} />
<Route path={routes.settings} element={<Preferences/>} />
<Route path={routes.subscription} element={<SingleSubscription/>} />
<Route path={routes.subscriptionExternal} element={<SingleSubscription/>} />
<Route path={routes.root} element={<AllSubscriptions/>}/>
<Route path={routes.settings} element={<Preferences/>}/>
<Route path={routes.subscription} element={<SingleSubscription/>}/>
<Route path={routes.subscriptionExternal} element={<SingleSubscription/>}/>
</Route>
</Routes>
</ThemeProvider>
</BrowserRouter>
</ErrorBoundary>
</ErrorBoundary>
</ThemeProvider>
</BrowserRouter>
);
}