From 07ca16f41c53eccf4a9b959bd4e4656a987d8199 Mon Sep 17 00:00:00 2001
From: HombreLaser <sebastian-440@live.com>
Date: Tue, 25 Apr 2023 17:53:24 -0600
Subject: Añade listado de productos
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 src/main.tsx | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

(limited to 'src/main.tsx')

diff --git a/src/main.tsx b/src/main.tsx
index af84886..7d0af9a 100644
--- a/src/main.tsx
+++ b/src/main.tsx
@@ -3,15 +3,13 @@ import ReactDOM from 'react-dom/client'
 import { createBrowserRouter, Navigate, RouterProvider } from 'react-router-dom'
 import Products from "./routes/products/products";
 import Layout from "./components/layout";
-import loader from "./clients/loader"; 
+import productLoader from "./clients/loader"; 
 import './index.css'
 
 const routes = [
   {
     path: '/products',
-    loader: async({ params }) => {
-      return loader("/products", params);
-    },
+    loader: productLoader,
     element: <Products/>
   },
   {
-- 
cgit v1.2.3

