From 63d5528a04ce8a2667c7a4a81e2d43676111c05e Mon Sep 17 00:00:00 2001
From: "HATEC\\SPVDEV001" <tri.susilo@altama.co.id>
Date: Mon, 30 Oct 2023 10:13:41 +0700
Subject: logo brand di page search mobile

---
 src/lib/product/components/ProductSearch.jsx | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

(limited to 'src/lib/product/components/ProductSearch.jsx')

diff --git a/src/lib/product/components/ProductSearch.jsx b/src/lib/product/components/ProductSearch.jsx
index 190d026b..b25311cf 100644
--- a/src/lib/product/components/ProductSearch.jsx
+++ b/src/lib/product/components/ProductSearch.jsx
@@ -87,7 +87,6 @@ const ProductSearch = ({ query, prefixUrl, defaultBrand = null, brand = null })
         `${process.env.NEXT_PUBLIC_SELF_HOST}/api/shop/brands?params=search&q=${q}`
       )
       setIsBrand(brand?.data[0])
-     
     }
     checkIfBrand()
   }, [q])
@@ -225,6 +224,12 @@ const ProductSearch = ({ query, prefixUrl, defaultBrand = null, brand = null })
       <MobileView>
         {productSearch.isLoading && <ProductSearchSkeleton />}
         <div className='p-4 pt-0'>
+          {isBrand && isBrand.logo && (
+            <div className='mb-3'>
+              <h1 className='mb-2 font-semibold text-h-sm'>Brand Pencarian {q}</h1>
+              <Image src={isBrand?.logo} alt='' className='object-cover object-center h-[60px]' />
+            </div>
+          )}
           <h1 className='mb-2 font-semibold text-h-sm'>Produk</h1>
           <FilterChoicesComponent
             brandValues={brandValues}
-- 
cgit v1.2.3

