+ <>
{t("landingPage.descriptionP1")}
@@ -100,6 +100,6 @@ function Body(): ReactElement {
marginTop: theme.spacing(4),
}}
/>
-
+ >
);
}
diff --git a/src/components/ProjectScreen/CreateProjectActions.ts b/src/components/ProjectScreen/CreateProjectActions.ts
index 1c6a3c2e85..7270655fc4 100644
--- a/src/components/ProjectScreen/CreateProjectActions.ts
+++ b/src/components/ProjectScreen/CreateProjectActions.ts
@@ -9,7 +9,7 @@ import { newProject } from "types/project";
// Dispatch Functions
-/*** Create a project without an import. */
+/** Create a project without an import. */
export function asyncCreateProject(
name: string,
vernacularWritingSystem: WritingSystem,
@@ -31,7 +31,7 @@ export function asyncCreateProject(
};
}
-/*** Create a project with a pre-uploaded import. */
+/** Create a project with a pre-uploaded import. */
export function asyncFinishProject(
name: string,
vernacularWritingSystem: WritingSystem
diff --git a/src/components/ProjectSettings/ProjectSchedule/index.tsx b/src/components/ProjectSettings/ProjectSchedule/index.tsx
index 3839efabbf..9db44c07c8 100644
--- a/src/components/ProjectSettings/ProjectSchedule/index.tsx
+++ b/src/components/ProjectSettings/ProjectSchedule/index.tsx
@@ -42,7 +42,7 @@ export default function ProjectSchedule(
const schedule =
props.project.workshopSchedule?.map((d) => new Date(d)) ?? [];
setProjectSchedule(schedule);
- }, [props.project.workshopSchedule, setProjectSchedule]);
+ }, [props.project.workshopSchedule]);
useEffect(() => {
// Every time a modal is closed, fetch the updated schedule.
diff --git a/src/components/ProjectUsers/EmailInvite.tsx b/src/components/ProjectUsers/EmailInvite.tsx
index 4ddc5fe9a9..3a8cef799c 100644
--- a/src/components/ProjectUsers/EmailInvite.tsx
+++ b/src/components/ProjectUsers/EmailInvite.tsx
@@ -44,7 +44,7 @@ export default function EmailInvite(props: InviteProps): ReactElement {
useEffect(() => {
setIsValid(validator.isEmail(email) && email !== "example@gmail.com");
- }, [email, setIsValid]);
+ }, [email]);
return (
diff --git a/src/components/ProjectUsers/UserList.tsx b/src/components/ProjectUsers/UserList.tsx
index 669be20171..140e7196de 100644
--- a/src/components/ProjectUsers/UserList.tsx
+++ b/src/components/ProjectUsers/UserList.tsx
@@ -47,7 +47,7 @@ export default function UserList(props: UserListProps): ReactElement {
const projUserIds = props.projectUsers.map((u) => u.id);
setNonProjUsers(users.filter((u) => !projUserIds.includes(u.id)));
});
- }, [props.projectUsers, setNonProjUsers]);
+ }, [props.projectUsers]);
useEffect(() => {
const newUserAvatar: Hash = {};
@@ -57,7 +57,7 @@ export default function UserList(props: UserListProps): ReactElement {
}
});
Promise.all(promises).then(() => setUserAvatar(newUserAvatar));
- }, [props.projectUsers, setUserAvatar]);
+ }, [props.projectUsers]);
const updateUsers = (text: string): void => {
setFilterInput(text);
diff --git a/src/components/SiteSettings/UserManagement/UserList.tsx b/src/components/SiteSettings/UserManagement/UserList.tsx
index eb80301c37..c6de593514 100644
--- a/src/components/SiteSettings/UserManagement/UserList.tsx
+++ b/src/components/SiteSettings/UserManagement/UserList.tsx
@@ -48,7 +48,7 @@ export default function UserList(props: UserListProps): ReactElement {
useEffect(() => {
setSortedUsers([...filteredUsers].sort(compareUsers));
- }, [compareUsers, filteredUsers, setFilteredUsers]);
+ }, [compareUsers, filteredUsers]);
useEffect(() => {
const newUserAvatar: Hash = {};
@@ -58,7 +58,7 @@ export default function UserList(props: UserListProps): ReactElement {
}
});
Promise.all(promises).then(() => setUserAvatar(newUserAvatar));
- }, [props.allUsers, setUserAvatar]);
+ }, [props.allUsers]);
useEffect(() => {
setFilteredUsers(
diff --git a/src/components/SiteSettings/UserManagement/index.tsx b/src/components/SiteSettings/UserManagement/index.tsx
index 20ecf8e5b7..bfff55a4c7 100644
--- a/src/components/SiteSettings/UserManagement/index.tsx
+++ b/src/components/SiteSettings/UserManagement/index.tsx
@@ -34,7 +34,7 @@ export default function UserManagement(): ReactElement {
console.error(err);
toast.error(t("siteSettings.populateUsers.toastFailure"));
});
- }, [setAllUsers, t]);
+ }, [t]);
useEffect(() => {
Modal.setAppElement("body");
diff --git a/src/components/TreeView/TreeDepiction/TreeTile.tsx b/src/components/TreeView/TreeDepiction/TreeTile.tsx
index d3a343bbec..2d393522a2 100644
--- a/src/components/TreeView/TreeDepiction/TreeTile.tsx
+++ b/src/components/TreeView/TreeDepiction/TreeTile.tsx
@@ -5,7 +5,7 @@ interface TreeTileProps {
colWidth: number;
imgSrc: string;
}
-/*** Creates a section of the tree diagram (one of the branches) set to proper dimensions. */
+/** Creates a section of the tree diagram (one of the branches) set to proper dimensions. */
export default function TreeTile(props: TreeTileProps): ReactElement {
return (
diff --git a/src/goals/DefaultGoal/Loading.tsx b/src/goals/DefaultGoal/Loading.tsx
index 61245e2e80..abdbaf2ef7 100644
--- a/src/goals/DefaultGoal/Loading.tsx
+++ b/src/goals/DefaultGoal/Loading.tsx
@@ -1,6 +1,6 @@
import { Typography } from "@mui/material";
import { animate } from "motion";
-import React, { ReactElement, useEffect } from "react";
+import { ReactElement, useEffect } from "react";
import { useTranslation } from "react-i18next";
import tractor from "resources/tractor.png";
@@ -19,7 +19,7 @@ export default function Loading(): ReactElement {
}, []);
return (
-
+ <>
{t("generic.loadingTitle")}
@@ -32,6 +32,6 @@ export default function Loading(): ReactElement {
{t("generic.loadingText")}
-
+ >
);
}
diff --git a/src/goals/MergeDuplicates/MergeDupsCompleted.tsx b/src/goals/MergeDuplicates/MergeDupsCompleted.tsx
index 0f9dfbf308..802bdeaa2c 100644
--- a/src/goals/MergeDuplicates/MergeDupsCompleted.tsx
+++ b/src/goals/MergeDuplicates/MergeDupsCompleted.tsx
@@ -111,12 +111,13 @@ interface WordPaperProps {
function WordPaper(props: WordPaperProps): ReactElement {
const [word, setWord] = useState();
const [flag, setFlag] = useState(newFlag());
+
useEffect(() => {
getWord(props.wordId).then(setWord);
- }, [props.wordId, setWord]);
+ }, [props.wordId]);
useEffect(() => {
setFlag(word?.flag ?? newFlag());
- }, [word, setFlag]);
+ }, [word]);
return (
diff --git a/src/goals/ReviewEntries/ReviewEntriesTable/index.tsx b/src/goals/ReviewEntries/ReviewEntriesTable/index.tsx
index ff4579f341..ca85451581 100644
--- a/src/goals/ReviewEntries/ReviewEntriesTable/index.tsx
+++ b/src/goals/ReviewEntries/ReviewEntriesTable/index.tsx
@@ -80,7 +80,7 @@ export default function ReviewEntriesTable(
}
return { pageSize: options[i], pageSizeOptions: options };
});
- }, [maxRows, setPageState]);
+ }, [maxRows]);
useEffect(() => {
// onRowsPerPageChange={() => window.scrollTo({ top: 0 })} doesn't work.