aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/wallet-view.js
diff options
context:
space:
mode:
authorsdtsui <szehungdanieltsui@gmail.com>2017-08-11 15:31:06 +0800
committersdtsui <szehungdanieltsui@gmail.com>2017-08-11 15:31:06 +0800
commit0fab1b54820aec01d3b4e7c2c351da57769647ee (patch)
treed698bf30938119044877bbf74d7f2893cb25cec7 /ui/app/components/wallet-view.js
parent8a39941d9a4c5b6fd4a3715394fec10c400c0f34 (diff)
downloadtangerine-wallet-browser-0fab1b54820aec01d3b4e7c2c351da57769647ee.tar
tangerine-wallet-browser-0fab1b54820aec01d3b4e7c2c351da57769647ee.tar.gz
tangerine-wallet-browser-0fab1b54820aec01d3b4e7c2c351da57769647ee.tar.bz2
tangerine-wallet-browser-0fab1b54820aec01d3b4e7c2c351da57769647ee.tar.lz
tangerine-wallet-browser-0fab1b54820aec01d3b4e7c2c351da57769647ee.tar.xz
tangerine-wallet-browser-0fab1b54820aec01d3b4e7c2c351da57769647ee.tar.zst
tangerine-wallet-browser-0fab1b54820aec01d3b4e7c2c351da57769647ee.zip
Implement responsive wallet balances
Diffstat (limited to 'ui/app/components/wallet-view.js')
-rw-r--r--ui/app/components/wallet-view.js146
1 files changed, 129 insertions, 17 deletions
diff --git a/ui/app/components/wallet-view.js b/ui/app/components/wallet-view.js
index 5622505c8..4f6a67994 100644
--- a/ui/app/components/wallet-view.js
+++ b/ui/app/components/wallet-view.js
@@ -6,6 +6,7 @@ const Identicon = require('./identicon')
const AccountDropdowns = require('./account-dropdowns').AccountDropdowns
const Content = require('./wallet-content-display')
const actions = require('../actions')
+const BalanceComponent = require('./balance-component')
const selectors = require('../selectors')
module.exports = connect(mapStateToProps, mapDispatchToProps)(WalletView)
@@ -113,22 +114,133 @@ WalletView.prototype.render = function () {
]),
]),
- h(Content, {
- 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",
- active: false,
- style: {
- marginTop: '1.3em',
- }
- })
+ //'Wallet' - Title
+ // Not visible on mobile
+ h('div.flex-column.wallet-view-title-wrapper', {}, [
+ h('span.wallet-view-title', {}, [
+ 'Wallet',
+ ])
+ ]),
+
+ //Wallet Balances
+ h('div.flex-column.wallet-balance-wrapper-active', {}, [
+
+ h('div', {}, [
+
+ h('div.wallet-balance', {}, [
+
+ h(BalanceComponent, {
+ balanceValue: selectedAccount.balance,
+ style: {},
+ }),
+
+ ]),
+
+ ])
+
+ ]),
+
+ h('div.flex-column', {}, [
+
+ h('div', {}, [
+
+ h('div.wallet-balance', {}, [
+
+ h(BalanceComponent, {
+ balanceValue: selectedAccount.balance,
+ style: {},
+ }),
+
+ ]),
+
+ ])
+
+ ]),
+
+ h('div.flex-column', {}, [
+
+ h('div', {}, [
+
+ h('div.wallet-balance', {}, [
+
+ h(BalanceComponent, {
+ balanceValue: selectedAccount.balance,
+ style: {},
+ }),
+
+ ]),
+
+ ])
+
+ ]),
+
+ h('div.flex-column', {}, [
+
+ h('div', {}, [
+
+ h('div.wallet-balance', {}, [
+
+ h(BalanceComponent, {
+ balanceValue: selectedAccount.balance,
+ style: {},
+ }),
+
+ ]),
+
+ ])
+
+ ]),
+
+ h('div.flex-column', {}, [
+
+ h('div', {}, [
+
+ h('div.wallet-balance', {}, [
+
+ h(BalanceComponent, {
+ balanceValue: selectedAccount.balance,
+ style: {},
+ }),
+
+ ]),
+
+ ])
+
+ ]),
+
+ h('div.flex-column', {}, [
+
+ h('div', {}, [
+
+ h('div.wallet-balance', {}, [
+
+ h(BalanceComponent, {
+ balanceValue: selectedAccount.balance,
+ style: {},
+ }),
+
+ ]),
+
+ ])
+
+ ]),
+
+ h('div.flex-column', {}, [
+
+ h('div', {}, [
+
+ h('div.wallet-balance', {}, [
+
+ h(BalanceComponent, {
+ balanceValue: selectedAccount.balance,
+ style: {},
+ }),
+
+ ]),
+
+ ])
+
+ ]),
+
])
}