From d292f00640a5b0cf68019eedebcdbb87ecb27270 Mon Sep 17 00:00:00 2001 From: Miqdad Date: Wed, 12 Nov 2025 18:18:03 +0700 Subject: watermark produk tidak tersedia --- public/images/produk_tidak_tersedia.svg | 91 ++++++++++++++++++++++ .../product-detail/components/ProductDetail.tsx | 11 ++- 2 files changed, 96 insertions(+), 6 deletions(-) create mode 100644 public/images/produk_tidak_tersedia.svg diff --git a/public/images/produk_tidak_tersedia.svg b/public/images/produk_tidak_tersedia.svg new file mode 100644 index 00000000..69fe214b --- /dev/null +++ b/public/images/produk_tidak_tersedia.svg @@ -0,0 +1,91 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src-migrate/modules/product-detail/components/ProductDetail.tsx b/src-migrate/modules/product-detail/components/ProductDetail.tsx index 354889e5..388d2248 100644 --- a/src-migrate/modules/product-detail/components/ProductDetail.tsx +++ b/src-migrate/modules/product-detail/components/ProductDetail.tsx @@ -143,16 +143,16 @@ const ProductDetail = ({ product }: Props) => { return ( <> - {/* WATERMARK OVERLAY jika produk tidak punya harga */} - {!hasPrice && ( -
+ {isDesktop && !hasPrice && ( +
Produk tidak tersedia
)} +
@@ -293,7 +293,6 @@ const ProductDetail = ({ product }: Props) => {
)} -

{product.name}

-- cgit v1.2.3