aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/accounts
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2018-03-22 10:18:10 +0800
committerDan <danjm.com@gmail.com>2018-03-22 10:18:10 +0800
commita82631791efb496efc9f611a2a3edbac7123d221 (patch)
tree747446f3fa06954dc40f82ca5434a8d63960eecf /ui/app/accounts
parent18f85835296f12814e0593dfc67b29ac672ddf53 (diff)
downloadtangerine-wallet-browser-a82631791efb496efc9f611a2a3edbac7123d221.tar
tangerine-wallet-browser-a82631791efb496efc9f611a2a3edbac7123d221.tar.gz
tangerine-wallet-browser-a82631791efb496efc9f611a2a3edbac7123d221.tar.bz2
tangerine-wallet-browser-a82631791efb496efc9f611a2a3edbac7123d221.tar.lz
tangerine-wallet-browser-a82631791efb496efc9f611a2a3edbac7123d221.tar.xz
tangerine-wallet-browser-a82631791efb496efc9f611a2a3edbac7123d221.tar.zst
tangerine-wallet-browser-a82631791efb496efc9f611a2a3edbac7123d221.zip
Lint fixes
Diffstat (limited to 'ui/app/accounts')
-rw-r--r--ui/app/accounts/import/index.js4
-rw-r--r--ui/app/accounts/import/json.js2
-rw-r--r--ui/app/accounts/new-account/create-form.js2
3 files changed, 3 insertions, 5 deletions
diff --git a/ui/app/accounts/import/index.js b/ui/app/accounts/import/index.js
index 3720e637f..b09b50ef7 100644
--- a/ui/app/accounts/import/index.js
+++ b/ui/app/accounts/import/index.js
@@ -17,14 +17,13 @@ function AccountImportSubview () {
}
AccountImportSubview.prototype.getMenuItemTexts = function () {
- return [
+ return [
this.props.t('privateKey'),
this.props.t('jsonFile'),
]
}
AccountImportSubview.prototype.render = function () {
- const props = this.props
const state = this.state || {}
const menuItems = this.getMenuItemTexts()
const { type } = state
@@ -75,7 +74,6 @@ AccountImportSubview.prototype.render = function () {
}
AccountImportSubview.prototype.renderImportView = function () {
- const props = this.props
const state = this.state || {}
const { type } = state
const menuItems = this.getMenuItemTexts()
diff --git a/ui/app/accounts/import/json.js b/ui/app/accounts/import/json.js
index 8bcc1a14e..431c693ee 100644
--- a/ui/app/accounts/import/json.js
+++ b/ui/app/accounts/import/json.js
@@ -112,7 +112,7 @@ JsonImportSubview.propTypes = {
goHome: PropTypes.func,
displayWarning: PropTypes.func,
importNewJsonAccount: PropTypes.func,
- localeMessages: PropTypes.object,
+ t: PropTypes.func,
}
const mapStateToProps = state => {
diff --git a/ui/app/accounts/new-account/create-form.js b/ui/app/accounts/new-account/create-form.js
index b0e109cd7..728088568 100644
--- a/ui/app/accounts/new-account/create-form.js
+++ b/ui/app/accounts/new-account/create-form.js
@@ -61,7 +61,7 @@ NewAccountCreateForm.propTypes = {
createAccount: PropTypes.func,
goHome: PropTypes.func,
numberOfExistingAccounts: PropTypes.number,
- localeMessages: PropTypes.object,
+ t: PropTypes.object,
}
const mapStateToProps = state => {