summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/product/components/ProductSearch.jsx7
1 files changed, 6 insertions, 1 deletions
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}