Skip to content

Commit

Permalink
fix: resolve type constraint error in ProductList
Browse files Browse the repository at this point in the history
  • Loading branch information
derianrddev committed Dec 23, 2024
1 parent 4010124 commit 9720fc2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion frontend/app/marketplace/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use client";

import { ProductList } from "../products/page";
import ProductList from "../products/page";

export default function Marketplace() {
return <ProductList />;
Expand Down
4 changes: 2 additions & 2 deletions frontend/app/products/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) =>
Expand Down Expand Up @@ -89,4 +89,4 @@ export const ProductList = () => {
<AddProductModal isOpen={showModal} onClose={() => setShowModal(false)} />
</main>
);
};
}

0 comments on commit 9720fc2

Please sign in to comment.