From 5da28bc830e0fa8770c6c97f13059799fd9532e2 Mon Sep 17 00:00:00 2001 From: csrapr <26280794+csrapr@users.noreply.github.com> Date: Wed, 7 Apr 2021 18:50:19 +0100 Subject: [PATCH] Feat: move zeroConfLimit to wallet_CRYPTOCODE namespace --- new-lamassu-admin/src/pages/Cashout/Wizard.js | 9 +- .../src/pages/Cashout/WizardStep.js | 42 +----- new-lamassu-admin/src/pages/Cashout/helper.js | 28 +--- .../src/pages/Locales/Locales.js | 1 + new-lamassu-admin/src/pages/Wallet/Wallet.js | 1 + new-lamassu-admin/src/pages/Wallet/Wizard.js | 15 ++- .../src/pages/Wallet/WizardStep.js | 127 ++++++++++++------ new-lamassu-admin/src/pages/Wallet/helper.js | 21 ++- .../pages/Wizard/components/Wallet/Wallet.js | 5 + .../Wizard/components/Wallet/ZeroConfLimit.js | 48 +++++++ 10 files changed, 178 insertions(+), 119 deletions(-) create mode 100644 new-lamassu-admin/src/pages/Wizard/components/Wallet/ZeroConfLimit.js diff --git a/new-lamassu-admin/src/pages/Cashout/Wizard.js b/new-lamassu-admin/src/pages/Cashout/Wizard.js index 11259af1..fe018c01 100644 --- a/new-lamassu-admin/src/pages/Cashout/Wizard.js +++ b/new-lamassu-admin/src/pages/Cashout/Wizard.js @@ -11,7 +11,7 @@ import WizardSplash from './WizardSplash' import WizardStep from './WizardStep' import { DenominationsSchema } from './helper' -const LAST_STEP = 4 +const LAST_STEP = 3 const MODAL_WIDTH = 554 const MODAL_HEIGHT = 520 @@ -70,13 +70,6 @@ const Wizard = ({ machine, locale, onClose, save, error }) => { labelProp: 'display', valueProp: 'code' } - }, - { - type: 'zeroConfLimit', - display: '0-conf Limit', - schema: Yup.object().shape({ - zeroConfLimit: Yup.number().required() - }) } ] diff --git a/new-lamassu-admin/src/pages/Cashout/WizardStep.js b/new-lamassu-admin/src/pages/Cashout/WizardStep.js index 4fe2a384..e888fb2e 100644 --- a/new-lamassu-admin/src/pages/Cashout/WizardStep.js +++ b/new-lamassu-admin/src/pages/Cashout/WizardStep.js @@ -38,7 +38,7 @@ const WizardStep = ({