From d138c15dcd4272cd2358d28867ef35d1550b39cd Mon Sep 17 00:00:00 2001
From: HombreLaser <sebastian-440@live.com>
Date: Mon, 15 May 2023 20:35:39 -0600
Subject: Mejora renderizado de formularios

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

(limited to 'src/main.tsx')

diff --git a/src/main.tsx b/src/main.tsx
index cd65146..6808475 100644
--- a/src/main.tsx
+++ b/src/main.tsx
@@ -1,14 +1,15 @@
 import React from 'react'
 import ReactDOM from 'react-dom/client'
-import { BrowserRouter, createBrowserRouter, Navigate, RouterProvider } from 'react-router-dom'
+import { createBrowserRouter, Navigate, RouterProvider } from 'react-router-dom'
 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 { EditAccount } from './routes/account/edit';
-import { editAccount } from './clients/actions';
+import { Edit as EditAddress } from "./routes/account/addresses/edit";
+import { editAccount, editAddress } from './clients/actions';
 import Layout from "./components/layout";
-import { accountLoader, loader, productLoader } from "./clients/loaders"; 
+import { accountLoader, loader, productLoader, addressLoader } from "./clients/loaders"; 
 import './index.css';
 
 const routes = [
@@ -38,6 +39,12 @@ const routes = [
     loader: accountLoader,
     action: editAccount
   },
+  {
+    path: "/account/addresses/:addressId/edit",
+    element: <EditAddress/>,
+    loader: addressLoader,
+    action: editAddress,
+  },
   {
     path: '/',
     element: <Navigate to='/products'/>
-- 
cgit v1.2.3

