aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/wallet-view.js
diff options
context:
space:
mode:
authorSimon Liang <simon@divby0.io>2017-08-10 14:48:05 +0800
committerSimon Liang <simon@divby0.io>2017-08-10 14:48:05 +0800
commit708d8398f41f6bafe1e4678baebd18fb40999fc5 (patch)
tree4124390288c86e4829fee43845ce6df415e0860c /ui/app/components/wallet-view.js
parenta3f96951c2d6f2c8607e4fa270b5484e838b2e42 (diff)
downloadtangerine-wallet-browser-708d8398f41f6bafe1e4678baebd18fb40999fc5.tar
tangerine-wallet-browser-708d8398f41f6bafe1e4678baebd18fb40999fc5.tar.gz
tangerine-wallet-browser-708d8398f41f6bafe1e4678baebd18fb40999fc5.tar.bz2
tangerine-wallet-browser-708d8398f41f6bafe1e4678baebd18fb40999fc5.tar.lz
tangerine-wallet-browser-708d8398f41f6bafe1e4678baebd18fb40999fc5.tar.xz
tangerine-wallet-browser-708d8398f41f6bafe1e4678baebd18fb40999fc5.tar.zst
tangerine-wallet-browser-708d8398f41f6bafe1e4678baebd18fb40999fc5.zip
reverted my changes
Diffstat (limited to 'ui/app/components/wallet-view.js')
-rw-r--r--ui/app/components/wallet-view.js34
1 files changed, 17 insertions, 17 deletions
diff --git a/ui/app/components/wallet-view.js b/ui/app/components/wallet-view.js
index 7d4b8cd51..56aac1f13 100644
--- a/ui/app/components/wallet-view.js
+++ b/ui/app/components/wallet-view.js
@@ -11,6 +11,7 @@ const selectors = require('../selectors')
module.exports = connect(mapStateToProps, mapDispatchToProps)(WalletView)
function mapStateToProps (state) {
+
return {
network: state.metamask.network,
sidebarOpen: state.appState.sidebarOpen,
@@ -24,8 +25,8 @@ function mapStateToProps (state) {
function mapDispatchToProps (dispatch) {
return {
- showSendPage: () => { dispatch(actions.showSendPage()) },
- hideSidebar: () => { dispatch(actions.hideSidebar()) },
+ showSendPage: () => {dispatch(actions.showSendPage())},
+ hideSidebar: () => {dispatch(actions.hideSidebar())},
}
}
@@ -37,7 +38,7 @@ function WalletView () {
const noop = () => {}
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 || ''), {
style: {},
@@ -45,7 +46,7 @@ WalletView.prototype.render = function () {
// TODO: Separate component: wallet account details
h('div.flex-column', {
- style: {},
+ style: {}
}, [
h('div.flex-row.account-options-menu', {
@@ -91,9 +92,9 @@ WalletView.prototype.render = function () {
]),
h('span.account-name', {
- style: {},
+ style: {}
}, [
- selectedIdentity.name,
+ 'Account 1'
]),
h(AccountDropdowns, {
@@ -102,31 +103,30 @@ WalletView.prototype.render = function () {
left: 'calc(50% + 28px + 5.5px)',
top: '19.5%',
},
- selectedAddress,
+ selected: selectedAddress,
network,
identities,
enableAccountsSelector: true,
}, []),
]),
-
]),
h(Content, {
- title: 'Wallet',
- amount: '1001.124 ETH',
- fiatValue: '$300,000.00 USD',
- active: true,
+ title: 'Wallet',
+ amount: '1001.124 ETH',
+ fiatValue: '$300,000.00 USD',
+ active: true,
}),
// Wallet contents
h(Content, {
- title: 'Total Token Balance',
- amount: '45.439 ETH',
- fiatValue: '$13,000.00 USD',
+ title: "Total Token Balance",
+ amount: "45.439 ETH",
+ fiatValue: "$13,000.00 USD",
active: false,
style: {
marginTop: '1.3em',
- },
- }),
+ }
+ })
])
}