From 9720fc2b811032a80c35bf9a7968ce3330c13441 Mon Sep 17 00:00:00 2001 From: Derian Date: Sun, 22 Dec 2024 22:43:07 -0600 Subject: [PATCH] fix: resolve type constraint error in ProductList --- frontend/app/marketplace/page.tsx | 2 +- frontend/app/products/page.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/app/marketplace/page.tsx b/frontend/app/marketplace/page.tsx index 7f84c75..e982472 100644 --- a/frontend/app/marketplace/page.tsx +++ b/frontend/app/marketplace/page.tsx @@ -1,6 +1,6 @@ "use client"; -import { ProductList } from "../products/page"; +import ProductList from "../products/page"; export default function Marketplace() { return ; diff --git a/frontend/app/products/page.tsx b/frontend/app/products/page.tsx index 1590f0b..c6908f6 100644 --- a/frontend/app/products/page.tsx +++ b/frontend/app/products/page.tsx @@ -18,7 +18,7 @@ import { } from "@/app/components/ui/card"; import { products } from "@/constants/testDataProduct"; -export const ProductList = () => { +export default function ProductList() { const [showModal, setShowModal] = useState(false); // const filteredProducts = products.filter( // (product) => @@ -89,4 +89,4 @@ export const ProductList = () => { setShowModal(false)} /> ); -}; +}