From 1fc599eb7f6fa1eddbbb34c8a7c6af5da2b43c7f Mon Sep 17 00:00:00 2001 From: Anton Cherniavskyi Date: Fri, 18 Jun 2021 11:26:15 +0300 Subject: [PATCH] Fix linter errors --- init-env.js | 2 +- src/app/common/forms/BaseFieldLayout.js | 12 ++++++------ src/app/common/forms/FormPanel.js | 4 ++-- src/app/common/forms/inputs/CheckboxInput.js | 4 ++-- src/app/common/forms/inputs/DateInput.js | 2 +- src/app/common/forms/inputs/NumberInput.js | 2 +- src/app/common/forms/inputs/RadiosInput.js | 4 ++-- src/app/common/modals/ModalTrigger.js | 2 +- src/app/common/widgets/Loading.jsx | 2 +- src/app/common/widgets/Wizard.js | 8 ++++---- src/app/layouts/Header.jsx | 2 +- src/app/layouts/layout.scss | 4 ++-- src/styles/_variables.scss | 4 ++-- 13 files changed, 26 insertions(+), 26 deletions(-) diff --git a/init-env.js b/init-env.js index 28b77482..907c36bf 100644 --- a/init-env.js +++ b/init-env.js @@ -2,7 +2,7 @@ import dotenv from 'dotenv' import packageConfig from './package.json' import dotenvExpand from 'dotenv-expand' -if(!Boolean(process.env.APP_NAME)) { +if(!process.env.APP_NAME) { // set APP_NAME from package.json process.env.APP_NAME = packageConfig.name } diff --git a/src/app/common/forms/BaseFieldLayout.js b/src/app/common/forms/BaseFieldLayout.js index 4a6d73c4..43e3aeb4 100644 --- a/src/app/common/forms/BaseFieldLayout.js +++ b/src/app/common/forms/BaseFieldLayout.js @@ -40,16 +40,16 @@ export default function BaseFieldLayout({ const formattedError = useMemo(() => Array.isArray(error) ? error[0] : error, [error]) return ( -
+
{label && ( -