summaryrefslogtreecommitdiff
path: root/src-migrate/modules/product-detail/components/ProductDetail.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src-migrate/modules/product-detail/components/ProductDetail.tsx')
-rw-r--r--src-migrate/modules/product-detail/components/ProductDetail.tsx7
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 ? (