aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/accounts
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2016-11-22 03:03:32 +0800
committerDan Finlay <dan@danfinlay.com>2016-11-22 03:03:32 +0800
commit7ab9d408201ae65ad30512f1361df61a487a9330 (patch)
treecc7b208d36e9cf6eafcab5bd36edba0f46595a64 /ui/app/accounts
parente8a83026248e6e27e6d801cf1713551eb740137a (diff)
parent7021c7708c927b8723b6ba5842b451b6f46dbb3e (diff)
downloadtangerine-wallet-browser-7ab9d408201ae65ad30512f1361df61a487a9330.tar.gz
tangerine-wallet-browser-7ab9d408201ae65ad30512f1361df61a487a9330.tar.zst
tangerine-wallet-browser-7ab9d408201ae65ad30512f1361df61a487a9330.zip
Merge branch 'dev' into i831-AddRopsten-Dev
Diffstat (limited to 'ui/app/accounts')
-rw-r--r--ui/app/accounts/index.js14
1 files changed, 5 insertions, 9 deletions
diff --git a/ui/app/accounts/index.js b/ui/app/accounts/index.js
index 7551c498e..2e8321a77 100644
--- a/ui/app/accounts/index.js
+++ b/ui/app/accounts/index.js
@@ -34,11 +34,7 @@ AccountsScreen.prototype.render = function () {
var state = this.props
var identityList = valuesFor(state.identities)
var unconfTxList = valuesFor(state.unconfTxs)
- var actions = {
- onSelect: this.onSelect.bind(this),
- onShowDetail: this.onShowDetail.bind(this),
- goHome: this.goHome.bind(this),
- }
+
return (
h('.accounts-section.flex-grow', [
@@ -46,7 +42,7 @@ AccountsScreen.prototype.render = function () {
// subtitle and nav
h('.section-title.flex-center', [
h('i.fa.fa-arrow-left.fa-lg.cursor-pointer', {
- onClick: actions.goHome,
+ onClick: this.goHome.bind(this),
}),
h('h2.page-subtitle', 'Select Account'),
]),
@@ -87,7 +83,7 @@ AccountsScreen.prototype.render = function () {
h('div.footer.hover-white.pointer', {
key: 'reveal-account-bar',
onClick: () => {
- this.onRevealAccount()
+ this.addNewAccount()
},
style: {
display: 'flex',
@@ -146,8 +142,8 @@ AccountsScreen.prototype.onShowDetail = function (address, event) {
this.props.dispatch(actions.showAccountDetail(address))
}
-AccountsScreen.prototype.onRevealAccount = function () {
- this.props.dispatch(actions.revealAccount())
+AccountsScreen.prototype.addNewAccount = function () {
+ this.props.dispatch(actions.addNewAccount(0))
}
AccountsScreen.prototype.goHome = function () {