summaryrefslogtreecommitdiff
path: root/src/main.tsx
diff options
context:
space:
mode:
authorHombreLaser <sebastian-440@live.com>2023-05-06 00:44:46 -0600
committerHombreLaser <sebastian-440@live.com>2023-05-06 00:44:46 -0600
commitf4ea6fb6c577d41f72cc33283e42492e03833f00 (patch)
tree643d15132c6fd76adc268153390960adf0a228dd /src/main.tsx
parent8040a87759746c81694d2cbd1fb82039eb0e68f0 (diff)
Añade ruta account
Diffstat (limited to 'src/main.tsx')
-rw-r--r--src/main.tsx8
1 files changed, 7 insertions, 1 deletions
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 = [
@@ -25,6 +26,11 @@ const routes = [
element: <Companies/>
},
{
+ path: "/companies",
+ loader: accountLoader,
+ element: <Account/>
+ },
+ {
path: '/',
element: <Navigate to='/products'/>
}