aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/wallet-view.js
diff options
context:
space:
mode:
authorsdtsui <szehungdanieltsui@gmail.com>2017-08-07 12:54:42 +0800
committersdtsui <szehungdanieltsui@gmail.com>2017-08-07 12:54:42 +0800
commitba50411bb2247d783667142cc5e7efff1bf839de (patch)
tree131a4f564b1900ce86cb91953ecb97c3f8891b9c /ui/app/components/wallet-view.js
parent29662ff7b48c9cc8fc68cae6ba1e5a1f81ddf1c0 (diff)
downloadtangerine-wallet-browser-ba50411bb2247d783667142cc5e7efff1bf839de.tar
tangerine-wallet-browser-ba50411bb2247d783667142cc5e7efff1bf839de.tar.gz
tangerine-wallet-browser-ba50411bb2247d783667142cc5e7efff1bf839de.tar.bz2
tangerine-wallet-browser-ba50411bb2247d783667142cc5e7efff1bf839de.tar.lz
tangerine-wallet-browser-ba50411bb2247d783667142cc5e7efff1bf839de.tar.xz
tangerine-wallet-browser-ba50411bb2247d783667142cc5e7efff1bf839de.tar.zst
tangerine-wallet-browser-ba50411bb2247d783667142cc5e7efff1bf839de.zip
Position account icon, name, and caret
Diffstat (limited to 'ui/app/components/wallet-view.js')
-rw-r--r--ui/app/components/wallet-view.js64
1 files changed, 55 insertions, 9 deletions
diff --git a/ui/app/components/wallet-view.js b/ui/app/components/wallet-view.js
index 1c7330193..c96819ab9 100644
--- a/ui/app/components/wallet-view.js
+++ b/ui/app/components/wallet-view.js
@@ -13,6 +13,7 @@ function mapStateToProps (state) {
return {
network: state.metamask.network,
sidebarOpen: state.appState.sidebarOpen,
+ identities: state.metamask.identities,
}
}
@@ -32,7 +33,7 @@ const noop = () => {}
WalletView.prototype.render = function () {
const selected = '0x82df11beb942BEeeD58d466fCb0F0791365C7684' // TODO: remove fake address
- const { network, responsiveDisplayClassname, style } = this.props
+ const { network, responsiveDisplayClassname, style, identities } = this.props
return h('div.wallet-view.flex-column' + (responsiveDisplayClassname || ''), {
style: {},
@@ -43,19 +44,64 @@ WalletView.prototype.render = function () {
style: {}
}, [
- h('.identicon-wrapper.select-none', [
- h(Identicon, {
- diameter: 24,
- address: selected,
- }),
+ h('div.flex-row.account-options-menu', {
+ }, [
+
+ h(AccountDropdowns, {
+ // selected,
+ // network,
+ // identities: props.identities,
+ enableAccountOptions: true,
+ }, []),
+
]),
- h('span.account-name', {
- style: {}
+ h('div.flex-column.flex-center', {
+
}, [
- 'Account 1'
+
+ h('.identicon-wrapper.select-none', {
+ style: {
+ marginBottom: '1%',
+ },
+ }, [
+ h(Identicon, {
+ diameter: 54,
+ address: selected,
+ }),
+ ]),
+
+ h('span.account-name', {
+ style: {}
+ }, [
+ 'Account 1'
+ ]),
+
+ // h(AccountDropdowns, {
+ // style: {
+ // // position: 'absolute',
+ // // left: '58.5%',
+ // // top: '10.25%',
+ // },
+ // selected,
+ // network,
+ // identities,
+ // enableAccountsSelector: true,
+ // }, []),
+ h('div.flex-column.flex-center,', {
+ style: {
+ position: 'absolute',
+ marginLeft: '42px',
+ marginTop: '-10px',
+ },
+ }, h('i.fa.fa-angle-down', {}, [])),
+
]),
+ // position: absolute;
+ // left: 58.5%;
+ // top: 10.25%;
+
h(
AccountDropdowns,
{