diff options
| author | trisusilo <tri.susilo@altama.co.id> | 2023-10-20 04:12:51 +0000 |
|---|---|---|
| committer | trisusilo <tri.susilo@altama.co.id> | 2023-10-20 04:12:51 +0000 |
| commit | 27e306eed8d703a1126d39aebc1952ddb11ad157 (patch) | |
| tree | 7c4c8ab32aaf3d0394f67bcd62886cd00d908bd7 /src/lib/product/components/ProductSearch.jsx | |
| parent | a4ec58dc60b2feb8b71331e76dba7a8de5bdca53 (diff) | |
| parent | 40c30c5ea9a61ce39e6faf72504a141afa2d1505 (diff) | |
Merged in CR/UI (pull request #107)
items center untuk filter urutan dan page limit
Diffstat (limited to 'src/lib/product/components/ProductSearch.jsx')
| -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)} > |
