From 8f992ee6e84d21c3e6306b27856e4ba90accc1f2 Mon Sep 17 00:00:00 2001 From: elijah Date: Fri, 30 Dec 2016 17:12:21 -0800 Subject: [bug] For now, disable UI for supporting multiple accounts. It does not currently work with API tokens. --- ui/app/components/main_panel/index.js | 11 +++++++++-- ui/app/components/main_panel/user_section.js | 17 ++++++++++++----- 2 files changed, 21 insertions(+), 7 deletions(-) (limited to 'ui/app/components/main_panel') diff --git a/ui/app/components/main_panel/index.js b/ui/app/components/main_panel/index.js index 2949b1b3..05a1e903 100644 --- a/ui/app/components/main_panel/index.js +++ b/ui/app/components/main_panel/index.js @@ -68,6 +68,7 @@ export default class MainPanel extends React.Component { render() { let emailSection = null let vpnSection = null + let sidePanel = null if (this.state.account.authenticated) { if (this.state.account.hasEmail) { @@ -75,12 +76,18 @@ export default class MainPanel extends React.Component { } } - return ( -
+ if (false) { + sidePanel = ( + ) + } + + return ( +
+ {sidePanel}
{vpnSection} diff --git a/ui/app/components/main_panel/user_section.js b/ui/app/components/main_panel/user_section.js index 317f9931..b792bb43 100644 --- a/ui/app/components/main_panel/user_section.js +++ b/ui/app/components/main_panel/user_section.js @@ -9,6 +9,8 @@ import Account from 'models/account' import bitmask from 'lib/bitmask' +import App from 'app' + export default class UserSection extends React.Component { static get defaultProps() {return{ @@ -87,11 +89,16 @@ export default class UserSection extends React.Component { address = this.props.account.address } let header = ( - + ) return ( -- cgit v1.2.3