diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2024-01-25 14:51:22 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2024-01-25 14:51:22 +0700 |
| commit | 8ddb3b49117d60f4e389161b356a12f3355b5a78 (patch) | |
| tree | b9207398fcca0804ca77ba84cefae128fd6da1eb /src/lib/product | |
| parent | c0b38013bb97a995148b14301d26996ef15d4c7a (diff) | |
Add square ratio on product image
Diffstat (limited to 'src/lib/product')
| -rw-r--r-- | src/lib/product/components/ProductCard.jsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/product/components/ProductCard.jsx b/src/lib/product/components/ProductCard.jsx index 0b42d28a..1cec0804 100644 --- a/src/lib/product/components/ProductCard.jsx +++ b/src/lib/product/components/ProductCard.jsx @@ -18,7 +18,7 @@ const ProductCard = ({ product, simpleTitle, variant = 'vertical' }) => { }) 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]) |
