summaryrefslogtreecommitdiff
path: root/src-migrate
diff options
context:
space:
mode:
authorFIN-IT_AndriFP <andrifebriyadiputra@gmail.com>2026-01-05 11:01:11 +0700
committerFIN-IT_AndriFP <andrifebriyadiputra@gmail.com>2026-01-05 11:01:11 +0700
commit4c9f6b642871f180de70f38e6c05c88c234b7d32 (patch)
tree682b2f6429d6e915cd0de81c89994f4667bc1f23 /src-migrate
parentfd50180ac301916c6feb5e93598f3fc59ecb78a8 (diff)
(andri) add garansi
Diffstat (limited to 'src-migrate')
-rw-r--r--src-migrate/modules/product-detail/components/Information.tsx9
1 files changed, 7 insertions, 2 deletions
diff --git a/src-migrate/modules/product-detail/components/Information.tsx b/src-migrate/modules/product-detail/components/Information.tsx
index b7d3401e..4d54c03c 100644
--- a/src-migrate/modules/product-detail/components/Information.tsx
+++ b/src-migrate/modules/product-detail/components/Information.tsx
@@ -273,7 +273,7 @@ const Information = ({ product }: Props) => {
</Box>
</Flex>
- {/* 3. Garansi Produk */}
+ {/* 3. Garansi Produk - UPDATED DYNAMIC VALUE */}
<Flex align="center" className="gap-3">
<img
src="/images/garansi.svg"
@@ -282,7 +282,12 @@ const Information = ({ product }: Props) => {
/>
<Box>
<Text fontSize="11px" color="gray.500" lineHeight="short" mb="1px">Garansi Produk</Text>
- <Text fontSize="12px" fontWeight="bold" color="gray.800" lineHeight="short">24 Bulan</Text>
+ <Text fontSize="12px" fontWeight="bold" color="gray.800" lineHeight="short">
+ {/* Mengambil dari selectedVariant.z_warranty */}
+ {selectedVariant && (selectedVariant as any).z_warranty
+ ? (selectedVariant as any).z_warranty
+ : '-'}
+ </Text>
</Box>
</Flex>
</SimpleGrid>