lint warnings

This commit is contained in:
Carlos Mesquita
2024-09-07 22:42:22 +01:00
parent 6e4ef249b8
commit b4ab620c78
3 changed files with 3 additions and 1 deletions

View File

@@ -34,6 +34,7 @@ const ExerciseWalkthrough: React.FC<ITrainingTip> = (tip: ITrainingTip) => {
} }
return !prev; return !prev;
}); });
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [currentTime]); }, [currentTime]);
const handleAnimationComplete = useCallback(() => { const handleAnimationComplete = useCallback(() => {

View File

@@ -382,6 +382,7 @@ export default function Level({ exam, showSolutions = false, onFinish, editing =
setChangedPrompt(true); setChangedPrompt(true);
} }
} }
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [contextWordLines]); }, [contextWordLines]);

View File

@@ -34,7 +34,7 @@ export default function useUsers(props?: {type?: string; page?: number; size?: n
}) })
.finally(() => setIsLoading(false)); .finally(() => setIsLoading(false));
}; };
// eslint-disable-next-line react-hooks/exhaustive-deps
useEffect(getData, [props?.page, props?.size, props?.type, props?.orderBy, props?.direction]); useEffect(getData, [props?.page, props?.size, props?.type, props?.orderBy, props?.direction]);
return {users, total, isLoading, isError, reload: getData}; return {users, total, isLoading, isError, reload: getData};