From 91086d8b1af2e1c0ca9db38d037f6331c9e6131a Mon Sep 17 00:00:00 2001 From: Rafi Zadanly Date: Fri, 19 Jan 2024 09:30:15 +0700 Subject: Hide brand on ready stock page --- src/lib/product/components/ProductSearch.jsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/lib/product/components/ProductSearch.jsx b/src/lib/product/components/ProductSearch.jsx index e2b961f1..ed4365a8 100644 --- a/src/lib/product/components/ProductSearch.jsx +++ b/src/lib/product/components/ProductSearch.jsx @@ -253,12 +253,14 @@ const ProductSearch = ({ router.push(`${prefixUrl}?${params}`); }; + const isNotReadyStockPage = router.asPath !== '/shop/search?orderBy=stock'; + return ( <> {productSearch.isLoading && }
- {isBrand && isBrand.logo && ( + {isNotReadyStockPage && isBrand && isBrand.logo && (

Brand Pencarian {q} @@ -403,7 +405,7 @@ const ProductSearch = ({

)} - {isBrand && isBrand.logo && ( + {isNotReadyStockPage && isBrand && isBrand.logo && (

Brand Pencarian {q} -- cgit v1.2.3