From 50a22f6187cee87553f5686aa54498e1e1847e2f Mon Sep 17 00:00:00 2001 From: valentinkolb Date: Thu, 31 Oct 2024 18:07:19 +0100 Subject: [PATCH] fix(app): added multiple eslint-disable-next-line --- src/components/EmailModal/index.tsx | 3 +++ src/components/LoadInfinitQueryModal.tsx | 1 + src/components/users/modals/UserMenuModal.tsx | 1 + 3 files changed, 5 insertions(+) diff --git a/src/components/EmailModal/index.tsx b/src/components/EmailModal/index.tsx index 94fce31..50a088d 100644 --- a/src/components/EmailModal/index.tsx +++ b/src/components/EmailModal/index.tsx @@ -62,14 +62,17 @@ export const EmailModal = ({onSuccess, onCancel, recipients, subject, content, d useEffect(() => { formValues.setFieldValue("recipients", recipients ?? []) + // eslint-disable-next-line }, [recipients]) useEffect(() => { formValues.setFieldValue("subject", subject ?? "") + // eslint-disable-next-line }, [subject]) useEffect(() => { formValues.setFieldValue("content", content ?? "") + // eslint-disable-next-line }, [content]) const [testEmailWasSent, setTestEmailWasSent] = useState(false) diff --git a/src/components/LoadInfinitQueryModal.tsx b/src/components/LoadInfinitQueryModal.tsx index 3151ca1..15372f7 100644 --- a/src/components/LoadInfinitQueryModal.tsx +++ b/src/components/LoadInfinitQueryModal.tsx @@ -36,6 +36,7 @@ export default function LoadInfinitQueryModal({start, query, onSuccess, onErr if (start && query.isFetched && !query.hasNextPage) { onSuccess?.() } + // eslint-disable-next-line }, [start, query, onSuccess]) const totalItems = query.data?.pages?.[0].totalItems || 0 diff --git a/src/components/users/modals/UserMenuModal.tsx b/src/components/users/modals/UserMenuModal.tsx index d002a35..50fa9b3 100644 --- a/src/components/users/modals/UserMenuModal.tsx +++ b/src/components/users/modals/UserMenuModal.tsx @@ -64,6 +64,7 @@ export default function UserMenuModal() { } formValues.setInitialValues(values) formValues.setValues(values) + // eslint-disable-next-line }, [user]); const mutation = useMutation({