From 5385c7074f49ffb27b0bc2df9a99caa1b12073f0 Mon Sep 17 00:00:00 2001 From: Tin Pham <72054441+tinpham5614@users.noreply.github.com> Date: Thu, 6 Jun 2024 22:24:39 -0700 Subject: [PATCH] belinda-nextjs-chore-432-refactor-product-card (#433) * refactor product card * reverted back to column for responsive --- app/category-page/[categoryId]/page.tsx | 3 +-- components/ProductCard.tsx | 34 +++++++++++++------------ 2 files changed, 19 insertions(+), 18 deletions(-) diff --git a/app/category-page/[categoryId]/page.tsx b/app/category-page/[categoryId]/page.tsx index b14d1a96..9ce33350 100644 --- a/app/category-page/[categoryId]/page.tsx +++ b/app/category-page/[categoryId]/page.tsx @@ -76,8 +76,7 @@ const ViewProduct = ({ categoryId }: { categoryId: string }) => { {filteredProducts.map((product, index) => ( - // - + - product image + product image @@ -131,7 +130,17 @@ export default function ProductCard({ {sizePantsInseam} - + {description} @@ -139,18 +148,12 @@ export default function ProductCard({ - - + {/* Only show delete and archive buttons if user is admin or creator */} {userRole === "admin" || userRole === "creator" ? ( - {/* TODO: Add delete function to this button */} - {/* TODO: Add archive function to this button */}