diff options
| author | HATEC\SPVDEV001 <tri.susilo@altama.co.id> | 2023-10-20 11:11:58 +0700 |
|---|---|---|
| committer | HATEC\SPVDEV001 <tri.susilo@altama.co.id> | 2023-10-20 11:11:58 +0700 |
| commit | 40c30c5ea9a61ce39e6faf72504a141afa2d1505 (patch) | |
| tree | 00a8f93116816062ae4a029d51ceb23336fd1c44 /src/lib/product/components | |
| parent | b8f5507cda2ede25ebc5433439168a8dadc71ddc (diff) | |
items center untuk filter urutan dan page limit
Diffstat (limited to 'src/lib/product/components')
| -rw-r--r-- | src/lib/product/components/ProductSearch.jsx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/lib/product/components/ProductSearch.jsx b/src/lib/product/components/ProductSearch.jsx index af3d881f..a4e3d872 100644 --- a/src/lib/product/components/ProductSearch.jsx +++ b/src/lib/product/components/ProductSearch.jsx @@ -40,8 +40,6 @@ const ProductSearch = ({ query, prefixUrl, defaultBrand = null }) => { const [priceFrom, setPriceFrom] = useState(query?.priceFrom || null) const [priceTo, setPriceTo] = useState(query?.priceTo || null) - console.log('ini roiute', router.pathname.includes('brands')) - const pageCount = Math.ceil(productSearch.data?.response.numFound / limit) const productStart = productSearch.data?.responseHeader.params.start const productRows = limit @@ -337,8 +335,8 @@ const ProductSearch = ({ query, prefixUrl, defaultBrand = null }) => { priceTo={priceTo} handleDeleteFilter={handleDeleteFilter} /> - <div className='flex justify-between items-center mb-2'> - <div className='mb-2 leading-6 text-gray_r-11'> + <div className='flex justify-between items-center mb-5'> + <div className='leading-6 text-gray_r-11'> {!spellings ? ( <> Menampilkan @@ -369,7 +367,7 @@ const ProductSearch = ({ query, prefixUrl, defaultBrand = null }) => { <div className='ml-3'> <select name='urutan' - className='form-input mt-2' + className='form-input' value={orderBy} onChange={(e) => handleOrderBy(e)} > @@ -384,7 +382,7 @@ const ProductSearch = ({ query, prefixUrl, defaultBrand = null }) => { <div className='ml-3'> <select name='limit' - className='form-input mt-2' + className='form-input' value={router.query?.limit || ''} onChange={(e) => handleLimit(e)} > |
