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

This reverts commit d1aa8b54fb.
This commit is contained in:
Luc SORIGNET
2025-02-15 13:41:06 +01:00
parent a571d80482
commit d9655772b4
23 changed files with 92 additions and 132 deletions

View File

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