feat: disable transaction batching editing unless it's BTC
This commit is contained in:
parent
68d9d95dfa
commit
c7a9cef998
1 changed files with 7 additions and 3 deletions
|
|
@ -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'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue