diff options
| author | Miqdad <ahmadmiqdad27@gmail.com> | 2025-08-23 08:49:46 +0700 |
|---|---|---|
| committer | Miqdad <ahmadmiqdad27@gmail.com> | 2025-08-23 08:49:46 +0700 |
| commit | a1b0e672387747085c85c6c446cea49f09af7719 (patch) | |
| tree | d5c8998d60bfa5cec4e9c58f10a886ee3d0aa748 /src-migrate/modules/product-detail/components/ProductDetail.tsx | |
| parent | 753be9690f95c288aec2ab92269529131626254d (diff) | |
<Miqdad> Move stock position mobile
Diffstat (limited to 'src-migrate/modules/product-detail/components/ProductDetail.tsx')
| -rw-r--r-- | src-migrate/modules/product-detail/components/ProductDetail.tsx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src-migrate/modules/product-detail/components/ProductDetail.tsx b/src-migrate/modules/product-detail/components/ProductDetail.tsx index a6b4e6de..e6b77fb9 100644 --- a/src-migrate/modules/product-detail/components/ProductDetail.tsx +++ b/src-migrate/modules/product-detail/components/ProductDetail.tsx @@ -72,10 +72,9 @@ const ProductDetail = ({ product }: Props) => { product?.variants?.find((variant) => variant.is_in_bu) || product?.variants?.[0]; setSelectedVariant(selectedVariant); - }, []); // eslint-disable-line react-hooks/exhaustive-deps + }, []); // Gabungkan semua gambar produk (utama + tambahan) - // Gabungkan semua gambar produk (utama + tambahan) const allImages = (() => { const arr: string[] = []; if (product?.image) arr.push(product.image); // selalu masukkan utama, baik mobile maupun desktop @@ -147,8 +146,8 @@ const ProductDetail = ({ product }: Props) => { className='flex overflow-x-auto snap-x snap-mandatory scroll-smooth no-scrollbar' style={{ scrollBehavior: 'smooth', - msOverflowStyle: 'none', // IE/Edge lama - scrollbarWidth: 'none', // Firefox + msOverflowStyle: 'none', + scrollbarWidth: 'none', }} > {allImages.length > 0 ? ( |
