diff --git a/src/views/Wallet/views/Account/Send/ethereum/components/AdvancedForm/index.js b/src/views/Wallet/views/Account/Send/ethereum/components/AdvancedForm/index.js index c3ea7e91..c8b4cafc 100644 --- a/src/views/Wallet/views/Account/Send/ethereum/components/AdvancedForm/index.js +++ b/src/views/Wallet/views/Account/Send/ethereum/components/AdvancedForm/index.js @@ -3,7 +3,7 @@ import * as React from 'react'; import styled from 'styled-components'; import colors from 'config/colors'; -import { FormattedMessage } from 'react-intl'; +import { FormattedMessage, injectIntl } from 'react-intl'; import Link from 'components/Link'; import Input from 'components/inputs/Input'; @@ -18,6 +18,7 @@ import l10nMessages from './index.messages'; import type { Props as BaseProps } from '../../Container'; type Props = BaseProps & { + intl: any, children: React.Node, } @@ -212,7 +213,7 @@ const AdvancedForm = (props: Props) => { </InputLabelWrapper> )} bottomText={errors.gasLimit || warnings.gasLimit || infos.gasLimit} - value={calculatingGasLimit ? 'Calculating...' : gasLimit} // TODO: figure out translations in inputs + value={calculatingGasLimit ? props.intl.formatMessage(l10nMessages.TR_CALCULATING_DOT_DOT) : gasLimit} // TODO: figure out translations in inputs isDisabled={networkSymbol === currency && data.length > 0} onChange={event => onGasLimitChange(event.target.value)} /> @@ -289,4 +290,4 @@ const AdvancedForm = (props: Props) => { ); }; -export default AdvancedForm; \ No newline at end of file +export default injectIntl(AdvancedForm); \ No newline at end of file diff --git a/src/views/Wallet/views/Account/Send/ethereum/components/AdvancedForm/index.messages.js b/src/views/Wallet/views/Account/Send/ethereum/components/AdvancedForm/index.messages.js index 94293760..170815fb 100644 --- a/src/views/Wallet/views/Account/Send/ethereum/components/AdvancedForm/index.messages.js +++ b/src/views/Wallet/views/Account/Send/ethereum/components/AdvancedForm/index.messages.js @@ -22,6 +22,7 @@ const definedMessages: Messages = defineMessages({ TR_CALCULATING_DOT_DOT: { id: 'TR_CALCULATING_DOT_DOT', defaultMessage: 'Calculating...', + description: 'Used when calculating gas limit based on data input in ethereum advanced send form', }, TR_GAS_PRICE: { id: 'TR_GAS_PRICE',