From f257d3c7e22f929965e71e5eec4c2ec5254e696f Mon Sep 17 00:00:00 2001
From: HombreLaser <sebastian-440@live.com>
Date: Sat, 27 May 2023 01:38:46 -0600
Subject: Añade página de error
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

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

(limited to 'src/main.tsx')

diff --git a/src/main.tsx b/src/main.tsx
index ab98f13..7ffaf2f 100644
--- a/src/main.tsx
+++ b/src/main.tsx
@@ -7,6 +7,7 @@ import Companies from "./routes/companies/companies";
 import Account from "./routes/account/account";
 import Cart from "./routes/account/cart";
 import Orders from "./routes/account/orders";
+import ErrorPage from "./components/error_page";
 import { EditAccount } from './routes/account/edit';
 import { Edit as EditAddress } from "./routes/account/addresses/edit";
 import { create, editAccount, authenticatedEdit, deleteFromCart, placeOrder, productAction } from './clients/actions';
@@ -81,7 +82,8 @@ const routes = [
   },
   {
     path: '/',
-    element: <Navigate to='/products'/>
+    element: <Navigate to='/products'/>,
+    errorElement: <ErrorPage />
   }
 ];
 
-- 
cgit v1.2.3

