diff options
author | Thomas Huang <tmashuang@users.noreply.github.com> | 2017-06-29 01:07:49 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-29 01:07:49 +0800 |
commit | ffd3773ef3c400c89c362580e7ae3969d00ae20c (patch) | |
tree | 13cc622a66025476bdcb8840c316c05c0146a533 /ui/app/account-detail.js | |
parent | ddba2af4152668a5767ce874a4727873c72bac72 (diff) | |
parent | 8642feee09f57d5756c682a053434a196cff4af3 (diff) | |
download | tangerine-wallet-browser-ffd3773ef3c400c89c362580e7ae3969d00ae20c.tar tangerine-wallet-browser-ffd3773ef3c400c89c362580e7ae3969d00ae20c.tar.gz tangerine-wallet-browser-ffd3773ef3c400c89c362580e7ae3969d00ae20c.tar.bz2 tangerine-wallet-browser-ffd3773ef3c400c89c362580e7ae3969d00ae20c.tar.lz tangerine-wallet-browser-ffd3773ef3c400c89c362580e7ae3969d00ae20c.tar.xz tangerine-wallet-browser-ffd3773ef3c400c89c362580e7ae3969d00ae20c.tar.zst tangerine-wallet-browser-ffd3773ef3c400c89c362580e7ae3969d00ae20c.zip |
Merge pull request #1620 from MetaMask/i1616-AddTokenAdding
Add ability to add tokens to token list
Diffstat (limited to 'ui/app/account-detail.js')
-rw-r--r-- | ui/app/account-detail.js | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/ui/app/account-detail.js b/ui/app/account-detail.js index 836032b3c..bed05a7fb 100644 --- a/ui/app/account-detail.js +++ b/ui/app/account-detail.js @@ -35,6 +35,7 @@ function mapStateToProps (state) { conversionRate: state.metamask.conversionRate, currentCurrency: state.metamask.currentCurrency, currentAccountTab: state.metamask.currentAccountTab, + tokens: state.metamask.tokens, } } @@ -273,11 +274,16 @@ AccountDetailScreen.prototype.tabSections = function () { AccountDetailScreen.prototype.tabSwitchView = function () { const props = this.props const { address, network } = props - const { currentAccountTab } = this.props + const { currentAccountTab, tokens } = this.props switch (currentAccountTab) { case 'tokens': - return h(TokenList, { userAddress: address, network }) + return h(TokenList, { + userAddress: address, + network, + tokens, + addToken: () => this.props.dispatch(actions.showAddTokenPage()), + }) default: return this.transactionList() } |