1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-12-25 16:38:08 +00:00

Add text under "Gas limit" input showing that gas limit is being recalculated

This commit is contained in:
Vasek Mlejnsky 2018-09-24 10:46:33 +02:00
parent e1c1c5c9fc
commit 34a02ee537

View File

@ -106,6 +106,7 @@ const AdvancedForm = (props: Props) => {
networkSymbol, networkSymbol,
currency, currency,
recommendedGasPrice, recommendedGasPrice,
calculatingGasLimit,
errors, errors,
warnings, warnings,
infos, infos,
@ -160,7 +161,7 @@ const AdvancedForm = (props: Props) => {
</Tooltip> </Tooltip>
</InputLabelWrapper> </InputLabelWrapper>
)} )}
bottomText={errors.gasLimit || warnings.gasLimit || infos.gasLimit} bottomText={errors.gasLimit || warnings.gasLimit || infos.gasLimit || (calculatingGasLimit ? 'Calculating...' : '')}
value={gasLimit} value={gasLimit}
isDisabled={networkSymbol === currency && data.length > 0} isDisabled={networkSymbol === currency && data.length > 0}
onChange={event => onGasLimitChange(event.target.value)} onChange={event => onGasLimitChange(event.target.value)}