Fix eslint warnings (#3814)

This commit is contained in:
Boy132 2021-12-19 18:50:18 +01:00 committed by GitHub
parent 1564742606
commit 1d02365efe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,7 +8,7 @@ import useFlash from '@/plugins/useFlash';
import { SocketEvent, SocketRequest } from '@/components/server/events'; import { SocketEvent, SocketRequest } from '@/components/server/events';
import Field from '@/components/elements/Field'; import Field from '@/components/elements/Field';
import updateStartupVariable from '@/api/server/updateStartupVariable'; import updateStartupVariable from '@/api/server/updateStartupVariable';
import { Form, Formik, FormikHelpers } from 'formik'; import { Form, Formik } from 'formik';
interface Values { interface Values {
gslToken: string; gslToken: string;
@ -44,7 +44,7 @@ const GSLTokenModalFeature = () => {
}; };
}, [ connected, instance, status ]); }, [ connected, instance, status ]);
const updateGSLToken = (values: Values, { setSubmitting }: FormikHelpers<Values>) => { const updateGSLToken = (values: Values) => {
setLoading(true); setLoading(true);
clearFlashes('feature:gslToken'); clearFlashes('feature:gslToken');