From ce4502d1233e8e25c97f2d56303dbeae15e0da77 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 6 Oct 2026 18:16:25 +0700 Subject: [PATCH] x --- apps/spa/src/components/ProductCard.tsx | 37 +++++---------------- apps/website/src/components/ProductCard.tsx | 35 +++++-------------- 2 files changed, 17 insertions(+), 55 deletions(-) diff --git a/apps/spa/src/components/ProductCard.tsx b/apps/spa/src/components/ProductCard.tsx index 6847b85..b87c022 100644 --- a/apps/spa/src/components/ProductCard.tsx +++ b/apps/spa/src/components/ProductCard.tsx @@ -150,34 +150,15 @@ export default function ProductCard({ product, enableQuickShop = false, category {colorSwatches.length > 0 || (enableQuickShop && product.variants && product.variants.length > 1) ? ( colorSwatches.length > 0 ? ( -
e.stopPropagation()}> - {colorSwatches.slice(0, 5).map(({ colorCode, variant, label }) => { - const isSelected = selectedVariant?.id === variant.id || selectedVariant?.colorCode === colorCode; - return ( -