mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +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 Identicon = require('./identicon')
|
||||||
const AccountDropdowns = require('./account-dropdowns').AccountDropdowns
|
const AccountDropdowns = require('./account-dropdowns').AccountDropdowns
|
||||||
const Content = require('./wallet-content-display')
|
const Content = require('./wallet-content-display')
|
||||||
|
const actions = require('../actions')
|
||||||
|
|
||||||
module.exports = connect(mapStateToProps)(WalletView)
|
module.exports = connect(mapStateToProps, mapDispatchToProps)(WalletView)
|
||||||
|
|
||||||
function mapStateToProps (state) {
|
function mapStateToProps (state) {
|
||||||
return {
|
return {
|
||||||
@ -14,6 +15,12 @@ function mapStateToProps (state) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function mapDispatchToProps (dispatch) {
|
||||||
|
return {
|
||||||
|
showSendPage: () => {dispatch(actions.showSendPage())},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
inherits(WalletView, Component)
|
inherits(WalletView, Component)
|
||||||
function WalletView () {
|
function WalletView () {
|
||||||
@ -112,6 +119,10 @@ WalletView.prototype.render = function () {
|
|||||||
}
|
}
|
||||||
}, 'BUY'),
|
}, 'BUY'),
|
||||||
h('div.wallet-btn', {
|
h('div.wallet-btn', {
|
||||||
|
onClick: () => {
|
||||||
|
console.log("SHOW");
|
||||||
|
this.props.showSendPage();
|
||||||
|
},
|
||||||
style: {
|
style: {
|
||||||
border: '1px solid rgb(91, 93, 103)',
|
border: '1px solid rgb(91, 93, 103)',
|
||||||
borderRadius: '2px',
|
borderRadius: '2px',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user