fix: suppress exhaustive-deps warnings in admin components
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -26,7 +26,7 @@ export default function DownloadAdmin() {
|
|||||||
.finally(() => setLoading(false));
|
.finally(() => setLoading(false));
|
||||||
};
|
};
|
||||||
|
|
||||||
// eslint-disable-next-line react-hooks/set-state-in-effect -- initial data fetch on mount
|
// eslint-disable-next-line react-hooks/set-state-in-effect, react-hooks/exhaustive-deps -- initial data fetch on mount
|
||||||
useEffect(() => { load(); }, []);
|
useEffect(() => { load(); }, []);
|
||||||
|
|
||||||
if (loading) {
|
if (loading) {
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ export default function UserAdmin() {
|
|||||||
})
|
})
|
||||||
.finally(() => setLoading(false));
|
.finally(() => setLoading(false));
|
||||||
};
|
};
|
||||||
// eslint-disable-next-line react-hooks/set-state-in-effect -- initial data fetch on mount
|
// eslint-disable-next-line react-hooks/set-state-in-effect, react-hooks/exhaustive-deps -- initial data fetch on mount
|
||||||
useEffect(() => { load(0); }, []);
|
useEffect(() => { load(0); }, []);
|
||||||
|
|
||||||
const handleRoleToggle = async (u) => {
|
const handleRoleToggle = async (u) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user