From b45835a01655b67f52ebd933f3d2c07d803f6aaf Mon Sep 17 00:00:00 2001 From: FIN-IT_AndriFP Date: Fri, 9 Jan 2026 10:33:14 +0700 Subject: (andri) ganti sticky variant kolom pertama menjadi attribute code pertama dari magento --- .../product-detail/components/ProductDetail.tsx | 58 ++++++++++------------ 1 file changed, 25 insertions(+), 33 deletions(-) (limited to 'src-migrate') diff --git a/src-migrate/modules/product-detail/components/ProductDetail.tsx b/src-migrate/modules/product-detail/components/ProductDetail.tsx index 387a7e5f..983cb843 100644 --- a/src-migrate/modules/product-detail/components/ProductDetail.tsx +++ b/src-migrate/modules/product-detail/components/ProductDetail.tsx @@ -567,27 +567,20 @@ const ProductDetail = ({ product }: Props) => { return ( + {/* Baris 1: Header Utama */} - - {topHeaders.map((th, idx) => ( ))} + + {/* Baris 2: Sub Header */} {subHeaders.map((sub, idx) => ( - {/* MENGGUNAKAN sortedVariants HASIL REVISI */} {sortedVariants.map((v, vIdx) => ( - {/* 1. KOLOM JUDUL VARIANT (Sticky Kiri) */} - - {/* 2. KOLOM DATA SPESIFIKASI */} {flatSpecs.map((spec, sIdx) => { const rawValue = spec.values[v.id] || '-'; + const isFirstCol = sIdx === 0; return ( -- cgit v1.2.3
- Variant - {
{
- {v.attributes && v.attributes.length > 0 ? v.attributes.join(' - ') : v.code} - {renderSpecValue(rawValue)}