From 44a016256717b871ada858d5dc064d9d0e06425e Mon Sep 17 00:00:00 2001
From: HombreLaser <sebastian-440@live.com>
Date: Thu, 18 May 2023 22:04:52 -0600
Subject: Añade creación de direcciones
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 src/main.tsx | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

(limited to 'src/main.tsx')

diff --git a/src/main.tsx b/src/main.tsx
index b044f49..f1020b1 100644
--- a/src/main.tsx
+++ b/src/main.tsx
@@ -7,10 +7,11 @@ import Companies from "./routes/companies/companies";
 import Account from "./routes/account/account";
 import { EditAccount } from './routes/account/edit';
 import { Edit as EditAddress } from "./routes/account/addresses/edit";
-import { editAccount, editAddress } from './clients/actions';
+import { createAddress, editAccount, editAddress } from './clients/actions';
 import Layout from "./components/layout";
 import { accountLoader, loader, productLoader, addressLoader } from "./clients/loaders"; 
 import './index.css';
+import { Create as CreateAddress } from './routes/account/addresses/create';
 
 const routes = [
   {
@@ -45,6 +46,11 @@ const routes = [
     loader: addressLoader,
     action: editAddress,
   },
+  {
+    path: "/account/addresses/new",
+    element: <CreateAddress/>,
+    action: createAddress
+  },
   {
     path: '/',
     element: <Navigate to='/products'/>
@@ -54,9 +60,9 @@ const routes = [
 const router = createBrowserRouter(routes);
 
 ReactDOM.createRoot(document.getElementById('root') as HTMLElement).render(
-  //<React.StrictMode>
+  <React.StrictMode>
     <Layout>
       <RouterProvider router={router}/>
     </Layout>
-  //</React.StrictMode>
+  </React.StrictMode>
 )
\ No newline at end of file
-- 
cgit v1.2.3

