Skip to content

Commit

Permalink
belindas-closet-nextjs_8_448_simplify-product-description (#460)
Browse files Browse the repository at this point in the history
Resolves #448 #449

This PR minimizes product descriptions  on the category page (to just the gender and description, and doesn't include sizes). The product cards are smaller now so there can be more columns.
  • Loading branch information
intisarosman1 authored Jun 12, 2024
1 parent 25a5932 commit e7f50c0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/category-page/[categoryId]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,15 @@ const ViewProduct = ({ categoryId }: { categoryId: string }) => {
</Typography>
<Grid container spacing={2}>
{filteredProducts.map((product, index) => (
<Grid item key={index} xs={12} sm={6} md={4}>
<Grid item key={index} xs={12} sm={4} md={2.5}>
<ProductCard
image={logo}
categories={product.productType}
gender={product.productGender}
sizeShoe={product.productSizeShoe}
size={product.productSizes}
sizePantsWaist={product.productSizePantsWaist}
sizePantsInseam={product.productSizePantsInseam}
sizeShoe=''
size=''
sizePantsWaist=''
sizePantsInseam=''
description={product.productDescription}
href={`/category-page/${categoryId}/products/${product._id}`} // Construct the URL
_id={product._id}
Expand Down

0 comments on commit e7f50c0

Please sign in to comment.