chore: search filter is made conditional as filters need to be present

This commit is contained in:
Palash 2022-06-23 01:12:12 +05:30
parent 729c7fce7b
commit d7d0d70aa5

View File

@ -41,14 +41,16 @@ function CommonCheckBox(props: CommonCheckBoxProps): JSX.Element {
return ( return (
<> <>
<Search {statusObj.length > 0 && (
value={searchFilter} <Search
onChange={(e): void => setSearchFilter(e.target.value)} value={searchFilter}
style={{ onChange={(e): void => setSearchFilter(e.target.value)}
padding: '0 3%', style={{
}} padding: '0 3%',
placeholder="Filter Values" }}
/> placeholder="Filter Values"
/>
)}
{statusObj {statusObj
.sort((a, b) => { .sort((a, b) => {