|
|
@ -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', |
|
|
|