From 21508a3514500f8f38ddaa8bef7a9cd420d76628 Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Mon, 22 May 2023 21:18:20 -0600 Subject: AƱade carrito MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.tsx | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'src/main.tsx') diff --git a/src/main.tsx b/src/main.tsx index 404cc0f..ebe246a 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -5,14 +5,16 @@ 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 Cart from "./routes/account/cart"; import { EditAccount } from './routes/account/edit'; import { Edit as EditAddress } from "./routes/account/addresses/edit"; -import { createAddress, editAccount, authenticatedEdit } from './clients/actions'; +import { create, editAccount, authenticatedEdit } from './clients/actions'; import Layout from "./components/layout"; -import { accountLoader, loader, productLoader, addressLoader, cardLoader } from "./clients/loaders"; +import { accountLoader, loader, productLoader, addressLoader, cardLoader, cartLoader } from "./clients/loaders"; import './index.css'; import { Create as CreateAddress } from './routes/account/addresses/create'; import { Edit as EditCard } from './routes/account/cards/edit'; +import { Create as CreateCard } from './routes/account/cards/create'; const routes = [ { @@ -50,7 +52,7 @@ const routes = [ { path: "/account/addresses/new", element: , - action: createAddress + action: create }, { path: "/account/cards/:cardId/edit", @@ -58,6 +60,16 @@ const routes = [ loader: cardLoader, action: authenticatedEdit }, + { + path: "/account/cards/new", + element: , + action: create + }, + { + path: "/account/cart", + element: , + loader: cartLoader + }, { path: '/', element: -- cgit v1.2.3