From 8ddb3b49117d60f4e389161b356a12f3355b5a78 Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Thu, 25 Jan 2024 14:51:22 +0700
Subject: Add square ratio on product image

---
 src-migrate/modules/product-detail/components/Image.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src-migrate/modules/product-detail/components/Image.tsx')

diff --git a/src-migrate/modules/product-detail/components/Image.tsx b/src-migrate/modules/product-detail/components/Image.tsx
index fffe1480..b69cc87f 100644
--- a/src-migrate/modules/product-detail/components/Image.tsx
+++ b/src-migrate/modules/product-detail/components/Image.tsx
@@ -36,7 +36,7 @@ const Image = ({ product }: Props) => {
   const duration = moment.duration(count, 'seconds')
 
   const image = useMemo(() => {
-    if (product.image) return product.image + '?watermark=true'
+    if (product.image) return product.image + '?ratio=square'
     return '/images/noimage.jpeg'
   }, [product.image])
 
-- 
cgit v1.2.3

