From 60c5d691ef70e7934bf51ffb286979bebb6de982 Mon Sep 17 00:00:00 2001 From: f0x Date: Mon, 7 Nov 2022 20:10:18 +0000 Subject: [PATCH] more small eslint fixes --- web/source/settings/admin/settings.js | 2 +- web/source/settings/components/error.jsx | 1 - web/source/settings/components/form/file.jsx | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/web/source/settings/admin/settings.js b/web/source/settings/admin/settings.js index dde631025..eb6e8b267 100644 --- a/web/source/settings/admin/settings.js +++ b/web/source/settings/admin/settings.js @@ -31,7 +31,7 @@ const adminActions = require("../redux/reducers/instances").actions; const { TextInput, TextArea, - File + _File } = require("../components/form-fields").formFields(adminActions.setAdminSettingsVal, (state) => state.instances.adminSettings); module.exports = function AdminSettings() { diff --git a/web/source/settings/components/error.jsx b/web/source/settings/components/error.jsx index 13dc686b7..dd1551c36 100644 --- a/web/source/settings/components/error.jsx +++ b/web/source/settings/components/error.jsx @@ -18,7 +18,6 @@ "use strict"; -const Promise = require("bluebird"); const React = require("react"); module.exports = function ErrorFallback({error, resetErrorBoundary}) { diff --git a/web/source/settings/components/form/file.jsx b/web/source/settings/components/form/file.jsx index 7c34f3393..0d28cb699 100644 --- a/web/source/settings/components/form/file.jsx +++ b/web/source/settings/components/form/file.jsx @@ -21,7 +21,7 @@ const React = require("react"); const prettierBytes = require("prettier-bytes"); -module.exports = function useFileInput({name, Name}, { +module.exports = function useFileInput({name, _Name}, { withPreview, maxSize, initialInfo = "no file selected"