From a08e0fbbcc9da94dc12b197b027889ac4489cf1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Oliveira?= Date: Wed, 17 Feb 2021 14:58:34 +0000 Subject: [PATCH] feat: forms validate only on submit --- new-lamassu-admin/src/components/ConfirmDialog.js | 1 - .../booleanPropertiesTable/BooleanPropertiesTable.js | 2 ++ new-lamassu-admin/src/components/editableTable/Table.js | 4 ++++ new-lamassu-admin/src/pages/AddMachine/AddMachine.js | 2 ++ new-lamassu-admin/src/pages/Blacklist/BlacklistModal.js | 2 ++ new-lamassu-admin/src/pages/Cashout/WizardStep.js | 4 ++++ new-lamassu-admin/src/pages/LoyaltyPanel/PromoCodesModal.js | 2 ++ .../Notifications/components/SingleFieldEditableNumber.js | 2 ++ .../src/pages/Notifications/sections/FiatBalanceAlerts.js | 2 ++ new-lamassu-admin/src/pages/OperatorInfo/ContactInfo.js | 2 ++ new-lamassu-admin/src/pages/OperatorInfo/TermsConditions.js | 2 ++ new-lamassu-admin/src/pages/Services/FormRenderer.js | 2 ++ new-lamassu-admin/src/pages/Triggers/Wizard.js | 2 ++ .../src/pages/Wizard/components/Wallet/ChooseCoin.js | 2 ++ 14 files changed, 30 insertions(+), 1 deletion(-) diff --git a/new-lamassu-admin/src/components/ConfirmDialog.js b/new-lamassu-admin/src/components/ConfirmDialog.js index bab70a09..066e9f54 100644 --- a/new-lamassu-admin/src/components/ConfirmDialog.js +++ b/new-lamassu-admin/src/components/ConfirmDialog.js @@ -115,7 +115,6 @@ export const ConfirmDialog = memo( error={error} InputLabelProps={{ shrink: true }} onChange={handleChange} - onBlur={() => setError(isOnErrorState)} /> diff --git a/new-lamassu-admin/src/components/booleanPropertiesTable/BooleanPropertiesTable.js b/new-lamassu-admin/src/components/booleanPropertiesTable/BooleanPropertiesTable.js index 9ceb5a5e..7964643b 100644 --- a/new-lamassu-admin/src/components/booleanPropertiesTable/BooleanPropertiesTable.js +++ b/new-lamassu-admin/src/components/booleanPropertiesTable/BooleanPropertiesTable.js @@ -50,6 +50,8 @@ const BooleanPropertiesTable = memo( return (
{adding && ( { Machine Name (ex: Coffee shop 01) { diff --git a/new-lamassu-admin/src/pages/Blacklist/BlacklistModal.js b/new-lamassu-admin/src/pages/Blacklist/BlacklistModal.js index 55e0f6a6..1fc53d20 100644 --- a/new-lamassu-admin/src/pages/Blacklist/BlacklistModal.js +++ b/new-lamassu-admin/src/pages/Blacklist/BlacklistModal.js @@ -42,6 +42,8 @@ const BlackListModal = ({ handleClose={onClose} open={true}> { handleClose={onClose} open={true}> { diff --git a/new-lamassu-admin/src/pages/Notifications/components/SingleFieldEditableNumber.js b/new-lamassu-admin/src/pages/Notifications/components/SingleFieldEditableNumber.js index 10e43518..37bd9c12 100644 --- a/new-lamassu-admin/src/pages/Notifications/components/SingleFieldEditableNumber.js +++ b/new-lamassu-admin/src/pages/Notifications/components/SingleFieldEditableNumber.js @@ -53,6 +53,8 @@ const SingleFieldEditableNumber = ({ return ( { )}
{ )} { currentStep={step} /> {