aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/accounts/import
diff options
context:
space:
mode:
Diffstat (limited to 'ui/app/accounts/import')
-rw-r--r--ui/app/accounts/import/index.js4
-rw-r--r--ui/app/accounts/import/json.js2
2 files changed, 2 insertions, 4 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 => {