From 2e90c813d0cf924bb9e8b383c1202aae15b14684 Mon Sep 17 00:00:00 2001
From: Ariel Costas Guerrero <94913521+arielcostas@users.noreply.github.com>
Date: Mon, 3 Mar 2025 22:54:36 +0100
Subject: Add theme provider and errorBoundary

---
 src/main.tsx | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

(limited to 'src/main.tsx')

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>
 )
-- 
cgit v1.3

