mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-29 19:36:20 -05:00
Modifying Dashboard search clear button to clear all search params.
This commit is contained in:
parent
bd8411bcd7
commit
dd13534a39
7 changed files with 43 additions and 11 deletions
|
|
@ -987,7 +987,10 @@ export const useSearchDate = () => {
|
|||
updateQuery({fromDate: newFromDate, toDate: newToDate, month: newMonths, 'o': 0});
|
||||
}
|
||||
|
||||
return {dateRange: [fromDate, toDate], setDates, months, clearDate}
|
||||
const anySearch = (months && months.length > 0) || (fromDate !== null || toDate !== null);
|
||||
const isEmpty = !anySearch;
|
||||
|
||||
return {dateRange: [fromDate, toDate], setDates, months, clearDate, isEmpty}
|
||||
}
|
||||
|
||||
export const useUploadFile = () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue