From 07817bbdc1f1ae29c848e5dfdb3ac5b140f48cc4 Mon Sep 17 00:00:00 2001 From: Rafi Zadanly Date: Wed, 10 May 2023 11:40:53 +0700 Subject: Bug fixing cart badge, class attribute, whatsapp url --- src/core/components/elements/Navbar/NavbarDesktop.jsx | 10 ++++++---- src/core/components/elements/Navbar/NavbarMobile.jsx | 8 +++++--- src/lib/auth/components/RegisterDesktop.jsx | 2 +- src/lib/auth/components/RegisterMobile.jsx | 2 +- src/lib/cart/components/Cart.jsx | 4 ++-- src/lib/form/components/KunjunganSales.jsx | 2 +- src/lib/form/components/KunjunganService.jsx | 2 +- src/lib/form/components/Merchant.jsx | 2 +- src/lib/form/components/SuratDukungan.jsx | 2 +- src/lib/product/components/ProductSearch.jsx | 4 ++-- 10 files changed, 21 insertions(+), 17 deletions(-) (limited to 'src') diff --git a/src/core/components/elements/Navbar/NavbarDesktop.jsx b/src/core/components/elements/Navbar/NavbarDesktop.jsx index 3da0035a..26edd5a4 100644 --- a/src/core/components/elements/Navbar/NavbarDesktop.jsx +++ b/src/core/components/elements/Navbar/NavbarDesktop.jsx @@ -73,11 +73,13 @@ const NavbarDesktop = () => { Quotation -
+
0 && 'mr-2'}`}> - - {cartCount} - + {cartCount > 0 && ( + + {cartCount} + + )}
Keranjang diff --git a/src/core/components/elements/Navbar/NavbarMobile.jsx b/src/core/components/elements/Navbar/NavbarMobile.jsx index 7ac967fa..b69e86e8 100644 --- a/src/core/components/elements/Navbar/NavbarMobile.jsx +++ b/src/core/components/elements/Navbar/NavbarMobile.jsx @@ -43,9 +43,11 @@ const NavbarMobile = () => { - - {cartCount} - + {cartCount > 0 && ( + + {cartCount} + + )}
-
+
{ />
-
+
{ const LoadProductSimilar = async () => { const randProductIndex = Math.floor(Math.random() * products.length) const productLoad = await productSearchApi({ - query: `q=${products?.[randProductIndex].parent.name}&limit=10` + query: `q=${products?.[randProductIndex].parent.name}&limit=10&operation=OR` }) setProductRecomendation(productLoad) @@ -474,7 +474,7 @@ const Cart = () => {
-

Product Yang Mungkin Kamu Suka

+

Produk Yang Mungkin Kamu Suka

{productRecomendation && productRecomendation.response.products.map((product) => ( diff --git a/src/lib/form/components/KunjunganSales.jsx b/src/lib/form/components/KunjunganSales.jsx index 38a07345..7064f807 100644 --- a/src/lib/form/components/KunjunganSales.jsx +++ b/src/lib/form/components/KunjunganSales.jsx @@ -77,7 +77,7 @@ const KunjunganSales = () => {