diff options
author | sdtsui <szehungdanieltsui@gmail.com> | 2017-08-01 14:21:11 +0800 |
---|---|---|
committer | sdtsui <szehungdanieltsui@gmail.com> | 2017-08-01 14:21:11 +0800 |
commit | 6f4bee45997862b3ca52785b9d62489969f070f5 (patch) | |
tree | 3937edff70118f5808085c957ffb0981577e859a /ui | |
parent | a7fc5126502a9c69aaa727178997ea4ed703c2d6 (diff) | |
download | tangerine-wallet-browser-6f4bee45997862b3ca52785b9d62489969f070f5.tar tangerine-wallet-browser-6f4bee45997862b3ca52785b9d62489969f070f5.tar.gz tangerine-wallet-browser-6f4bee45997862b3ca52785b9d62489969f070f5.tar.bz2 tangerine-wallet-browser-6f4bee45997862b3ca52785b9d62489969f070f5.tar.lz tangerine-wallet-browser-6f4bee45997862b3ca52785b9d62489969f070f5.tar.xz tangerine-wallet-browser-6f4bee45997862b3ca52785b9d62489969f070f5.tar.zst tangerine-wallet-browser-6f4bee45997862b3ca52785b9d62489969f070f5.zip |
Hook up send button to Send Token screen
Diffstat (limited to 'ui')
-rw-r--r-- | ui/app/components/wallet-view.js | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/ui/app/components/wallet-view.js b/ui/app/components/wallet-view.js index 60c2cb5c6..091a5cd7c 100644 --- a/ui/app/components/wallet-view.js +++ b/ui/app/components/wallet-view.js @@ -5,8 +5,9 @@ const inherits = require('util').inherits const Identicon = require('./identicon') const AccountDropdowns = require('./account-dropdowns').AccountDropdowns const Content = require('./wallet-content-display') +const actions = require('../actions') -module.exports = connect(mapStateToProps)(WalletView) +module.exports = connect(mapStateToProps, mapDispatchToProps)(WalletView) function mapStateToProps (state) { return { @@ -14,6 +15,12 @@ function mapStateToProps (state) { } } +function mapDispatchToProps (dispatch) { + return { + showSendPage: () => {dispatch(actions.showSendPage())}, + } +} + inherits(WalletView, Component) function WalletView () { @@ -112,6 +119,10 @@ WalletView.prototype.render = function () { } }, 'BUY'), h('div.wallet-btn', { + onClick: () => { + console.log("SHOW"); + this.props.showSendPage(); + }, style: { border: '1px solid rgb(91, 93, 103)', borderRadius: '2px', |