fix: keep previous value when closing the configuration popup without

saving on locales screen

refactor: renamed enableCoin function to configureCoin

fix: keep previous value when closing the configuration popup without
saving on wallets screen

refactor: renamed enableThirdPartyService function to
configureThirdPartyService
This commit is contained in:
Liordino Neto 2020-10-25 21:08:46 -03:00 committed by Josh Harvey
parent 2a1aaaaf7e
commit e09c972547
5 changed files with 44 additions and 21 deletions

View file

@ -16,7 +16,7 @@ const WalletSchema = Yup.object().shape({
const getElements = (
cryptoCurrencies,
accounts,
enableThirdPartyService,
configureThirdPartyService,
wizard = false
) => {
const widthAdjust = wizard ? 11 : 0
@ -38,7 +38,8 @@ const getElements = (
filterCoins(it)(filterOptions(option))
)
const onChange = (prev, curr) => enableThirdPartyService(curr)
const onChange = (prev, curr, cancel) =>
configureThirdPartyService(curr, cancel)
return [
{