summaryrefslogtreecommitdiff
path: root/src-migrate/modules/product-card/components
diff options
context:
space:
mode:
authorRafi Zadanly <zadanlyr@gmail.com>2024-01-25 14:51:22 +0700
committerRafi Zadanly <zadanlyr@gmail.com>2024-01-25 14:51:22 +0700
commit8ddb3b49117d60f4e389161b356a12f3355b5a78 (patch)
treeb9207398fcca0804ca77ba84cefae128fd6da1eb /src-migrate/modules/product-card/components
parentc0b38013bb97a995148b14301d26996ef15d4c7a (diff)
Add square ratio on product image
Diffstat (limited to 'src-migrate/modules/product-card/components')
-rw-r--r--src-migrate/modules/product-card/components/ProductCard.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src-migrate/modules/product-card/components/ProductCard.tsx b/src-migrate/modules/product-card/components/ProductCard.tsx
index 34f6d6b1..8487cd94 100644
--- a/src-migrate/modules/product-card/components/ProductCard.tsx
+++ b/src-migrate/modules/product-card/components/ProductCard.tsx
@@ -21,7 +21,7 @@ const ProductCard = ({ product, layout = 'vertical' }: Props) => {
}
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])