added clear filter
This commit is contained in:
parent
375c482b61
commit
61835cb189
@ -43,6 +43,7 @@ const TaskReportFilterPanel = ({ handleFilter }) => {
|
||||
|
||||
const onClear =()=>{
|
||||
setResetKey((prev) => prev + 1);
|
||||
handleFilter(TaskReportDefaultValue)
|
||||
reset(TaskReportDefaultValue)
|
||||
}
|
||||
|
||||
@ -80,7 +81,7 @@ const TaskReportFilterPanel = ({ handleFilter }) => {
|
||||
</div> */}
|
||||
|
||||
<div className="d-flex justify-content-end py-3 gap-2">
|
||||
<button type="button" className="btn btn-label-secondary btn-sm">
|
||||
<button type="button" className="btn btn-label-secondary btn-sm" onClick={onClear}>
|
||||
Clear
|
||||
</button>
|
||||
<button type="submit" className="btn btn-primary btn-sm">
|
||||
|
Loading…
x
Reference in New Issue
Block a user