Web:Client:Accounts: add clearAll

This commit is contained in:
TimofeyBoyko 2022-09-15 18:21:04 +03:00
parent ca485bc41d
commit 2d1e18b337

View File

@ -320,6 +320,11 @@ const SectionFilterContent = ({
fetchPeople(newFilter).finally(() => setIsLoading(false));
};
const clearAll = () => {
setIsLoading(true);
fetchPeople().finally(() => setIsLoading(false));
};
return isLoaded && tReady ? (
<FilterInput
t={t}
@ -339,6 +344,7 @@ const SectionFilterContent = ({
viewSelectorVisible={false}
removeSelectedItem={removeSelectedItem}
isAccounts={true}
clearAll={clearAll}
/>
) : (
<Loaders.Filter />