aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorChi Kei Chan <chikeichan@gmail.com>2017-10-24 15:29:20 +0800
committerChi Kei Chan <chikeichan@gmail.com>2017-10-24 15:29:20 +0800
commit2871beebe61418ce148069c932301d89e85923fa (patch)
tree12185cbbb3f304033d6fb8fe3b6ed22f8c5df849 /ui
parent3891cf1af6130126781b12aaee410c0831fa43e9 (diff)
downloadtangerine-wallet-browser-2871beebe61418ce148069c932301d89e85923fa.tar
tangerine-wallet-browser-2871beebe61418ce148069c932301d89e85923fa.tar.gz
tangerine-wallet-browser-2871beebe61418ce148069c932301d89e85923fa.tar.bz2
tangerine-wallet-browser-2871beebe61418ce148069c932301d89e85923fa.tar.lz
tangerine-wallet-browser-2871beebe61418ce148069c932301d89e85923fa.tar.xz
tangerine-wallet-browser-2871beebe61418ce148069c932301d89e85923fa.tar.zst
tangerine-wallet-browser-2871beebe61418ce148069c932301d89e85923fa.zip
Add "Add Token" button to side bar
Diffstat (limited to 'ui')
-rw-r--r--ui/app/components/wallet-view.js5
-rw-r--r--ui/app/css/itcss/components/newui-sections.scss13
2 files changed, 18 insertions, 0 deletions
diff --git a/ui/app/components/wallet-view.js b/ui/app/components/wallet-view.js
index 06123fd0e..580ac54aa 100644
--- a/ui/app/components/wallet-view.js
+++ b/ui/app/components/wallet-view.js
@@ -36,6 +36,7 @@ function mapDispatchToProps (dispatch) {
showAccountDetailModal: () => {
dispatch(actions.showModal({ name: 'ACCOUNT_DETAILS' }))
},
+ showAddTokenPage: () => dispatch(actions.showAddTokenPage()),
}
}
@@ -84,6 +85,7 @@ WalletView.prototype.render = function () {
keyrings,
showAccountDetailModal,
hideSidebar,
+ showAddTokenPage,
} = this.props
// temporary logs + fake extra wallets
// console.log('walletview, selectedAccount:', selectedAccount)
@@ -145,6 +147,9 @@ WalletView.prototype.render = function () {
h(TokenList),
+ h('button.wallet-view__add-token-button', {
+ onClick: showAddTokenPage,
+ }, 'Add Token'),
])
}
diff --git a/ui/app/css/itcss/components/newui-sections.scss b/ui/app/css/itcss/components/newui-sections.scss
index f86decab3..a78279084 100644
--- a/ui/app/css/itcss/components/newui-sections.scss
+++ b/ui/app/css/itcss/components/newui-sections.scss
@@ -107,6 +107,19 @@ $wallet-view-bg: $wild-sand;
}
}
}
+
+ &__add-token-button {
+ color: $dusty-gray;
+ font-size: 14px;
+ line-height: 19px;
+ text-align: center;
+ margin: 36px auto 0;
+ border: 1px solid $dusty-gray;
+ border-radius: 2px;
+ font-weight: 300;
+ background: none;
+ padding: 9px 30px;
+ }
}
@media screen and (min-width: 576px) {