Add error boundary
This commit is contained in:
parent
840cb5b182
commit
ccb9da9333
17 changed files with 13649 additions and 18020 deletions
|
@ -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>
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue