When the clear button hit api for full response.

This commit is contained in:
Kartik Sharma 2025-09-12 17:16:34 +05:30
parent 7e5b6952f5
commit 9676d45710
2 changed files with 5 additions and 3 deletions

View File

@ -30,7 +30,8 @@ const ContactFilterPanel = ({ onApply, clearFilter }) => {
};
const handleClose = () => {
reset(defaultContactFilter);
reset(defaultContactFilter);
onApply(defaultContactFilter);
closePanel();
};
@ -59,7 +60,7 @@ const ContactFilterPanel = ({ onApply, clearFilter }) => {
<div className="d-flex justify-content-end py-3 gap-2">
<button
type="button"
className="btn btn-secondary btn-xs"
className="btn btn-label-secondary btn-xs"
onClick={handleClose}
>
Clear

View File

@ -31,6 +31,7 @@ const NoteFilterPanel = ({ onApply, clearFilter }) => {
const handleClose = () => {
reset(defaultNotesFilter);
onApply(defaultNotesFilter);
closePanel();
};
@ -59,7 +60,7 @@ const NoteFilterPanel = ({ onApply, clearFilter }) => {
<div className="d-flex justify-content-end py-3 gap-2">
<button
type="button"
className="btn btn-secondary btn-xs"
className="btn btn-label-secondary btn-xs"
onClick={handleClose}
>
Clear