diff options
| author | HATEC\SPVDEV001 <tri.susilo@altama.co.id> | 2023-05-12 09:58:57 +0700 |
|---|---|---|
| committer | HATEC\SPVDEV001 <tri.susilo@altama.co.id> | 2023-05-12 09:58:57 +0700 |
| commit | 3cd30c1fea2a2c3982feea3b57e0322040c4a816 (patch) | |
| tree | 80dca8b6753fb8a330b94ddf2e1890f8e8d6a805 /src/lib/product | |
| parent | b20c603a856d8875e0e2b3a16fd925d997fd16d3 (diff) | |
| parent | c520c39918694e793da661c30975d6c4b60eb63c (diff) | |
Merge branch 'master' into development_tri/implementasi_raja_ongkir
Diffstat (limited to 'src/lib/product')
| -rw-r--r-- | src/lib/product/components/ProductCard.jsx | 1 | ||||
| -rw-r--r-- | src/lib/product/components/ProductSearch.jsx | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/product/components/ProductCard.jsx b/src/lib/product/components/ProductCard.jsx index 9300643e..9a5fe9a2 100644 --- a/src/lib/product/components/ProductCard.jsx +++ b/src/lib/product/components/ProductCard.jsx @@ -48,6 +48,7 @@ const ProductCard = ({ product, simpleTitle, variant = 'vertical' }) => { className={`font-normal mb-2 !text-gray_r-12 leading-6 block ${ simpleTitle ? 'line-clamp-2 h-12' : 'line-clamp-3 h-[64px]' }`} + title={product?.name} > {product?.name} </Link> diff --git a/src/lib/product/components/ProductSearch.jsx b/src/lib/product/components/ProductSearch.jsx index cc85589d..30722c82 100644 --- a/src/lib/product/components/ProductSearch.jsx +++ b/src/lib/product/components/ProductSearch.jsx @@ -248,9 +248,9 @@ const ProductSearch = ({ query, prefixUrl, defaultBrand = null }) => { <span> Barang yang anda cari tidak ada?{' '} <a - href={whatsappUrl('productSearch', { + href={query?.q ? whatsappUrl('productSearch', { name: query.q - })} + }) : whatsappUrl()} className='text-danger-500' > Hubungi Kami |
