aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/hex-as-decimal-input.js
diff options
context:
space:
mode:
authorkumavis <kumavis@users.noreply.github.com>2018-03-28 09:41:45 +0800
committerGitHub <noreply@github.com>2018-03-28 09:41:45 +0800
commit0582fdb617a23cc56e9e08460f09d86769599fc1 (patch)
tree5daf844ac1fd0c9d1f683b479184509ebb96c850 /ui/app/components/hex-as-decimal-input.js
parentb6b18339e2de92afd2fb5364ec5bc4c29b4d10a3 (diff)
parentb4ec68b2d4b6713e0a203df88eb4a8982c2cf2c6 (diff)
downloadtangerine-wallet-browser-0582fdb617a23cc56e9e08460f09d86769599fc1.tar.gz
tangerine-wallet-browser-0582fdb617a23cc56e9e08460f09d86769599fc1.tar.zst
tangerine-wallet-browser-0582fdb617a23cc56e9e08460f09d86769599fc1.zip
Merge pull request #3609 from MetaMask/i18n-translator-redux
Handle i18n with redux.
Diffstat (limited to 'ui/app/components/hex-as-decimal-input.js')
-rw-r--r--ui/app/components/hex-as-decimal-input.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/ui/app/components/hex-as-decimal-input.js b/ui/app/components/hex-as-decimal-input.js
index a43d44f89..be7ba4c9e 100644
--- a/ui/app/components/hex-as-decimal-input.js
+++ b/ui/app/components/hex-as-decimal-input.js
@@ -4,9 +4,9 @@ const inherits = require('util').inherits
const ethUtil = require('ethereumjs-util')
const BN = ethUtil.BN
const extend = require('xtend')
-const t = require('../../i18n')
+const connect = require('../metamask-connect')
-module.exports = HexAsDecimalInput
+module.exports = connect()(HexAsDecimalInput)
inherits(HexAsDecimalInput, Component)
function HexAsDecimalInput () {
@@ -127,13 +127,13 @@ HexAsDecimalInput.prototype.constructWarning = function () {
let message = name ? name + ' ' : ''
if (min && max) {
- message += t('betweenMinAndMax', [min, max])
+ message += this.props.t('betweenMinAndMax', [min, max])
} else if (min) {
- message += t('greaterThanMin', [min])
+ message += this.props.t('greaterThanMin', [min])
} else if (max) {
- message += t('lessThanMax', [max])
+ message += this.props.t('lessThanMax', [max])
} else {
- message += t('invalidInput')
+ message += this.props.t('invalidInput')
}
return message