diff options
| author | HATEC\SPVDEV001 <tri.susilo@altama.co.id> | 2024-01-25 15:05:30 +0700 |
|---|---|---|
| committer | HATEC\SPVDEV001 <tri.susilo@altama.co.id> | 2024-01-25 15:05:30 +0700 |
| commit | ceb2f3ef22b87378727aa8174d9e41952b72ee36 (patch) | |
| tree | 64dcff683cb113df412788ac7aa431d8c74b6d54 | |
| parent | 03822992ac1eb2fb930ca2a6298c75df44dfa527 (diff) | |
| parent | 8ddb3b49117d60f4e389161b356a12f3355b5a78 (diff) | |
Merge branch 'release' of https://bitbucket.org/altafixco/next-indoteknik into release
| -rw-r--r-- | src-migrate/modules/product-card/components/ProductCard.tsx | 2 | ||||
| -rw-r--r-- | src-migrate/modules/product-detail/components/Image.tsx | 2 | ||||
| -rw-r--r-- | src/lib/product/components/ProductCard.jsx | 2 |
3 files changed, 3 insertions, 3 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]) 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]) 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]) |
