diff options
| author | Ariel Costas Guerrero <94913521+arielcostas@users.noreply.github.com> | 2025-03-03 22:54:36 +0100 |
|---|---|---|
| committer | Ariel Costas Guerrero <94913521+arielcostas@users.noreply.github.com> | 2025-03-03 22:54:36 +0100 |
| commit | 2e90c813d0cf924bb9e8b383c1202aae15b14684 (patch) | |
| tree | d7dac941a482a8f0ef82645d0ffd05e1efc68e5e /src/main.tsx | |
| parent | 797c5f551b1bb6ddb139704eb9e8953c3bc1a8c8 (diff) | |
Add theme provider and errorBoundary
Diffstat (limited to 'src/main.tsx')
| -rw-r--r-- | src/main.tsx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main.tsx b/src/main.tsx index 496acc8..762aa0d 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -8,6 +8,8 @@ import { Estimates } from './pages/Estimates.tsx' import { StopMap } from './pages/Map.tsx' import { Layout } from './Layout.tsx' import { About } from './pages/About.tsx' +import { ThemeProvider } from './ThemeContext' +import ErrorBoundary from './ErrorBoundary' const router = createBrowserRouter([ { @@ -33,5 +35,9 @@ const router = createBrowserRouter([ ]) createRoot(document.getElementById('root')!).render( - <RouterProvider router={router} />, + <ErrorBoundary> + <ThemeProvider> + <RouterProvider router={router} /> + </ThemeProvider> + </ErrorBoundary> ) |
