summaryrefslogtreecommitdiff
path: root/src/main.tsx
diff options
context:
space:
mode:
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'/>
}