feat: disable transaction batching editing unless it's BTC

This commit is contained in:
Sérgio Salgado 2022-02-03 17:22:03 +00:00
parent 68d9d95dfa
commit c7a9cef998

View file

@ -76,9 +76,13 @@ const getAdvancedWalletElements = (cryptoCurrencies, coinUtils, config) => {
size: 'sm', size: 'sm',
stripe: true, stripe: true,
width: 250, width: 250,
view: (_, ite) => view: (_, ite) => {
config[`${ite.id}_allowTransactionBatching`] ? 'Yes' : 'No', if (ite.id !== 'BTC')
input: Checkbox return <span style={classes.editDisabled}>{`No`}</span>
return config[`${ite.id}_allowTransactionBatching`] ? 'Yes' : 'No'
},
input: Checkbox,
editable: it => it.id === 'BTC'
} }
] ]
} }