From bb2763a47ae15b718b9ed532b4b3bdd68d0d8867 Mon Sep 17 00:00:00 2001 From: Miqdad Date: Sat, 23 Aug 2025 09:32:03 +0700 Subject: Button Position --- .../product-detail/components/AddToQuotation.tsx | 4 +- .../product-detail/components/PriceAction.tsx | 68 ++++++++++++++++------ 2 files changed, 53 insertions(+), 19 deletions(-) (limited to 'src-migrate') diff --git a/src-migrate/modules/product-detail/components/AddToQuotation.tsx b/src-migrate/modules/product-detail/components/AddToQuotation.tsx index f9b6c2b3..0a901448 100644 --- a/src-migrate/modules/product-detail/components/AddToQuotation.tsx +++ b/src-migrate/modules/product-detail/components/AddToQuotation.tsx @@ -16,6 +16,7 @@ import { useProductCartContext } from '@/contexts/ProductCartContext'; import { createSlug } from '~/libs/slug'; import formatCurrency from '~/libs/formatCurrency'; import { useProductDetail } from '../stores/useProductDetail'; +import useDevice from '@/core/hooks/useDevice'; type Props = { variantId: number | null; @@ -40,6 +41,7 @@ const AddToQuotation = ({ }); const { askAdminUrl } = useProductDetail(); + const { isMobile, isDesktop } = useDevice(); const [product, setProducts] = useState(products); const [status, setStatus] = useState('idle'); @@ -129,7 +131,7 @@ const AddToQuotation = ({ width={25} height={25} /> - Penawaran Harga Instan + {isDesktop ? 'Penawaran Harga Instan' : ''} { )}
- -
- - {!isApproval && ( + +
+ {!isApproval && ( + + )} +
+
+ - )} -
-
- -
+
+ + +
+
+ +
+
+ {!isApproval && ( + + )} +
+
+ +
+
+
); }; -- cgit v1.2.3