From f4ea6fb6c577d41f72cc33283e42492e03833f00 Mon Sep 17 00:00:00 2001
From: HombreLaser <sebastian-440@live.com>
Date: Sat, 6 May 2023 00:44:46 -0600
Subject: Añade ruta account
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 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 6e36c31..7c15ecb 100644
--- a/src/main.tsx
+++ b/src/main.tsx
@@ -4,8 +4,9 @@ import { BrowserRouter, createBrowserRouter, Navigate, RouterProvider } from 're
 import Products from "./routes/products/products";
 import Product from "./routes/products/product";
 import Companies from "./routes/companies/companies";
+import Account from "./routes/account/account";
 import Layout from "./components/layout";
-import { loader, productLoader } from "./clients/loaders"; 
+import { accountLoader, loader, productLoader } from "./clients/loaders"; 
 import './index.css';
 
 const routes = [
@@ -24,6 +25,11 @@ const routes = [
     loader: loader,
     element: <Companies/>
   },
+  {
+    path: "/companies",
+    loader: accountLoader,
+    element: <Account/>
+  },
   {
     path: '/',
     element: <Navigate to='/products'/>
-- 
cgit v1.2.3

