1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

reverted my changes

This commit is contained in:
Simon Liang 2017-08-10 14:48:05 +08:00
parent a3f96951c2
commit 708d8398f4

View File

@ -11,6 +11,7 @@ const selectors = require('../selectors')
module.exports = connect(mapStateToProps, mapDispatchToProps)(WalletView) module.exports = connect(mapStateToProps, mapDispatchToProps)(WalletView)
function mapStateToProps (state) { function mapStateToProps (state) {
return { return {
network: state.metamask.network, network: state.metamask.network,
sidebarOpen: state.appState.sidebarOpen, sidebarOpen: state.appState.sidebarOpen,
@ -24,8 +25,8 @@ function mapStateToProps (state) {
function mapDispatchToProps (dispatch) { function mapDispatchToProps (dispatch) {
return { return {
showSendPage: () => { dispatch(actions.showSendPage()) }, showSendPage: () => {dispatch(actions.showSendPage())},
hideSidebar: () => { dispatch(actions.hideSidebar()) }, hideSidebar: () => {dispatch(actions.hideSidebar())},
} }
} }
@ -37,7 +38,7 @@ function WalletView () {
const noop = () => {} const noop = () => {}
WalletView.prototype.render = function () { WalletView.prototype.render = function () {
const { network, responsiveDisplayClassname, style, identities, selectedAddress, selectedIdentity } = this.props const { network, responsiveDisplayClassname, style, identities, selectedAddress } = this.props
return h('div.wallet-view.flex-column' + (responsiveDisplayClassname || ''), { return h('div.wallet-view.flex-column' + (responsiveDisplayClassname || ''), {
style: {}, style: {},
@ -45,7 +46,7 @@ WalletView.prototype.render = function () {
// TODO: Separate component: wallet account details // TODO: Separate component: wallet account details
h('div.flex-column', { h('div.flex-column', {
style: {}, style: {}
}, [ }, [
h('div.flex-row.account-options-menu', { h('div.flex-row.account-options-menu', {
@ -91,9 +92,9 @@ WalletView.prototype.render = function () {
]), ]),
h('span.account-name', { h('span.account-name', {
style: {}, style: {}
}, [ }, [
selectedIdentity.name, 'Account 1'
]), ]),
h(AccountDropdowns, { h(AccountDropdowns, {
@ -102,31 +103,30 @@ WalletView.prototype.render = function () {
left: 'calc(50% + 28px + 5.5px)', left: 'calc(50% + 28px + 5.5px)',
top: '19.5%', top: '19.5%',
}, },
selectedAddress, selected: selectedAddress,
network, network,
identities, identities,
enableAccountsSelector: true, enableAccountsSelector: true,
}, []), }, []),
]), ]),
]), ]),
h(Content, { h(Content, {
title: 'Wallet', title: 'Wallet',
amount: '1001.124 ETH', amount: '1001.124 ETH',
fiatValue: '$300,000.00 USD', fiatValue: '$300,000.00 USD',
active: true, active: true,
}), }),
// Wallet contents // Wallet contents
h(Content, { h(Content, {
title: 'Total Token Balance', title: "Total Token Balance",
amount: '45.439 ETH', amount: "45.439 ETH",
fiatValue: '$13,000.00 USD', fiatValue: "$13,000.00 USD",
active: false, active: false,
style: { style: {
marginTop: '1.3em', marginTop: '1.3em',
}, }
}), })
]) ])
} }