From b4ab620c78c21701d24027e7461c26eda41b0a5a Mon Sep 17 00:00:00 2001 From: Carlos Mesquita Date: Sat, 7 Sep 2024 22:42:22 +0100 Subject: [PATCH] lint warnings --- src/components/TrainingContent/ExerciseWalkthrough.tsx | 1 + src/exams/Level/index.tsx | 1 + src/hooks/useUsers.tsx | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/TrainingContent/ExerciseWalkthrough.tsx b/src/components/TrainingContent/ExerciseWalkthrough.tsx index 16026f91..0fe23718 100644 --- a/src/components/TrainingContent/ExerciseWalkthrough.tsx +++ b/src/components/TrainingContent/ExerciseWalkthrough.tsx @@ -34,6 +34,7 @@ const ExerciseWalkthrough: React.FC = (tip: ITrainingTip) => { } return !prev; }); + // eslint-disable-next-line react-hooks/exhaustive-deps }, [currentTime]); const handleAnimationComplete = useCallback(() => { diff --git a/src/exams/Level/index.tsx b/src/exams/Level/index.tsx index 84874cac..cfd3c4fe 100644 --- a/src/exams/Level/index.tsx +++ b/src/exams/Level/index.tsx @@ -382,6 +382,7 @@ export default function Level({ exam, showSolutions = false, onFinish, editing = setChangedPrompt(true); } } + // eslint-disable-next-line react-hooks/exhaustive-deps }, [contextWordLines]); diff --git a/src/hooks/useUsers.tsx b/src/hooks/useUsers.tsx index c3c4f5cc..7b860637 100644 --- a/src/hooks/useUsers.tsx +++ b/src/hooks/useUsers.tsx @@ -34,7 +34,7 @@ export default function useUsers(props?: {type?: string; page?: number; size?: n }) .finally(() => setIsLoading(false)); }; - + // eslint-disable-next-line react-hooks/exhaustive-deps useEffect(getData, [props?.page, props?.size, props?.type, props?.orderBy, props?.direction]); return {users, total, isLoading, isError, reload: getData};