1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-12-23 23:48:07 +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,
currency,
recommendedGasPrice,
calculatingGasLimit,
errors,
warnings,
infos,
@ -160,7 +161,7 @@ const AdvancedForm = (props: Props) => {
</Tooltip>
</InputLabelWrapper>
)}
bottomText={errors.gasLimit || warnings.gasLimit || infos.gasLimit}
bottomText={errors.gasLimit || warnings.gasLimit || infos.gasLimit || (calculatingGasLimit ? 'Calculating...' : '')}
value={gasLimit}
isDisabled={networkSymbol === currency && data.length > 0}
onChange={event => onGasLimitChange(event.target.value)}