mirror of
https://github.com/trezor/trezor-wallet
synced 2024-12-25 00:18:07 +00:00
Add text under "Gas limit" input showing that gas limit is being recalculated
This commit is contained in:
parent
e1c1c5c9fc
commit
34a02ee537
@ -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)}
|
||||||
|
Loading…
Reference in New Issue
Block a user