mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 01:39:44 +01:00
Hook up send button to Send Token screen
This commit is contained in:
parent
a7fc512650
commit
6f4bee4599
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user