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',
stripe: true,
width: 250,
view: (_, ite) =>
config[`${ite.id}_allowTransactionBatching`] ? 'Yes' : 'No',
input: Checkbox
view: (_, ite) => {
if (ite.id !== 'BTC')
return <span style={classes.editDisabled}>{`No`}</span>
return config[`${ite.id}_allowTransactionBatching`] ? 'Yes' : 'No'
},
input: Checkbox,
editable: it => it.id === 'BTC'
}
]
}