mirror of
https://git.v0id.ovh/n3wt-innov/n3wt-school.git
synced 2026-01-29 07:53:23 +00:00
fix: application des recommandations linter es pour générer un build de prod
This commit is contained in:
@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user