diff options
| author | trisusilo <tri.susilo@altama.co.id> | 2023-10-30 03:21:48 +0000 |
|---|---|---|
| committer | trisusilo <tri.susilo@altama.co.id> | 2023-10-30 03:21:48 +0000 |
| commit | 51478d9dea40bc10526df5b46cf8c9e387e662ec (patch) | |
| tree | 7ac938797140f664dc0740464828d7365f03dcd1 /src/lib | |
| parent | c57fdaf8562f2b40fd88bf09d74a2a863ce3a7e0 (diff) | |
| parent | 63d5528a04ce8a2667c7a4a81e2d43676111c05e (diff) | |
Merged in CR/UI (pull request #112)
logo brand di page search mobile
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/product/components/ProductSearch.jsx | 7 |
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} |
