summaryrefslogtreecommitdiff
path: root/src/routes
diff options
context:
space:
mode:
authorHombreLaser <sebastian-440@live.com>2023-04-23 13:12:25 -0600
committerHombreLaser <sebastian-440@live.com>2023-04-23 13:12:25 -0600
commit31cc5ecdb693be1da04ee0a3e6dc876535d5fb4b (patch)
treec87dc3b5aea7b791e7cef8984c1e0a2f31b58418 /src/routes
parent9a5b4259808d719a531eca18dff993eeeff71bc1 (diff)
Añade loader
Diffstat (limited to 'src/routes')
-rw-r--r--src/routes/products/products.tsx9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/routes/products/products.tsx b/src/routes/products/products.tsx
index 6b24269..80a9794 100644
--- a/src/routes/products/products.tsx
+++ b/src/routes/products/products.tsx
@@ -1,9 +1,16 @@
+import { useLoaderData } from "react-router-dom";
import SearchBar from "../../components/search_bar";
+import MainContentLayout from "../../components/main_content_layout";
export default function Products() {
+ const products = useLoaderData();
+ console.log(products);
+
return(
<>
- <SearchBar path="/products"/>
+ <MainContentLayout>
+ <SearchBar path="/products"/>
+ </MainContentLayout>
</>
);
} \ No newline at end of file