fix: application des recommandations linter es pour générer un build de prod

This commit is contained in:
Luc SORIGNET
2025-02-15 13:02:16 +01:00
parent 9716373fa2
commit d1aa8b54fb
23 changed files with 131 additions and 91 deletions

View File

@ -239,7 +239,7 @@ const registerFormArchivedDataHandler = (data) => {
fetchDataAndSetState();
}, [reloadFetch, currentPage]);
}, [reloadFetch, itemsPerPage, currentPage,activeTab, searchTerm]);
useEffect(() => {
const fetchDataAndSetState = () => {
@ -271,7 +271,7 @@ const timeoutId = setTimeout(() => {
fetchDataAndSetState();
}, 500); // Debounce la recherche
return () => clearTimeout(timeoutId);
}, [searchTerm]);
}, [currentPage,itemsPerPage,searchTerm]);
/**
* UseEffect to update page count of tab
@ -284,7 +284,7 @@ useEffect(()=>{
} else if (activeTab === 'archived') {
setTotalPages(Math.ceil(totalArchives / itemsPerPage));
}
},[currentPage]);
},[currentPage,activeTab,itemsPerPage,totalPending,totalSubscribed,totalArchives]);
/**
* Archives a registration form after user confirmation.
*