From fe0b9df8823b9508260b1f67b244e69ec5a302a4 Mon Sep 17 00:00:00 2001 From: FIN-IT_AndriFP Date: Tue, 23 Dec 2025 14:24:08 +0700 Subject: (andri) fix --- .../product-detail/components/AddToQuotation.tsx | 22 +++++++++++----------- .../components/ProductComparisonModal.tsx | 4 ++-- 2 files changed, 13 insertions(+), 13 deletions(-) (limited to 'src-migrate/modules') diff --git a/src-migrate/modules/product-detail/components/AddToQuotation.tsx b/src-migrate/modules/product-detail/components/AddToQuotation.tsx index 0ea88830..e26e271f 100644 --- a/src-migrate/modules/product-detail/components/AddToQuotation.tsx +++ b/src-migrate/modules/product-detail/components/AddToQuotation.tsx @@ -1,8 +1,7 @@ import BottomPopup from '@/core/components/elements/Popup/BottomPopup'; import style from '../styles/price-action.module.css'; -import { Button, Link, useToast, Icon } from '@chakra-ui/react'; -// Pastikan icon ini ada (atau ganti dengan text sementara jika error) -import { ScaleIcon } from '@heroicons/react/24/outline'; +import { Button, Link, useToast } from '@chakra-ui/react'; +// import { ScaleIcon } from '@heroicons/react/24/outline'; // Tidak perlu lagi import product from 'next-seo/lib/jsonld/product'; import { useRouter } from 'next/router'; import { useEffect, useState } from 'react'; @@ -26,7 +25,7 @@ type Props = { quantity?: number; source?: 'buy' | 'add_to_cart'; products: IProductDetail; - onCompare?: () => void; // <--- 1. Tambah Props + onCompare?: () => void; }; type Status = 'idle' | 'loading' | 'success'; @@ -36,7 +35,7 @@ const AddToQuotation = ({ quantity = 1, source = 'add_to_cart', products, - onCompare // <--- 2. Tangkap Props + onCompare }: Props) => { const auth = getAuth(); const router = useRouter(); @@ -112,32 +111,33 @@ const AddToQuotation = ({ }, [status]); return ( -
{/* Ganti div biasa jadi Flex Column gap 3 */} +
{/* 3. TAMPILAN DESKTOP: GRID 2 KOLOM (Bandingkan & Penawaran) */}
{/* Tombol Kiri: Bandingkan */} {/* Tombol Kanan: Penawaran (Link WA) */}
- {/* TAMPILAN MOBILE (Tetap seperti semula - hanya icon Penawaran) */} + {/* TAMPILAN MOBILE */}