aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-01-18 15:02:53 +0800
committerFabio Berger <me@fabioberger.com>2018-01-18 15:02:53 +0800
commit024f093585ac4d97d674e254658f4a44275b8b9e (patch)
treeeb0cd80b627ed8bfcf5247d247aa43c7556d155e /packages
parent996e9e9102dc3f7ebcd6328c59593410c397c779 (diff)
downloaddexon-sol-tools-024f093585ac4d97d674e254658f4a44275b8b9e.tar
dexon-sol-tools-024f093585ac4d97d674e254658f4a44275b8b9e.tar.gz
dexon-sol-tools-024f093585ac4d97d674e254658f4a44275b8b9e.tar.bz2
dexon-sol-tools-024f093585ac4d97d674e254658f4a44275b8b9e.tar.lz
dexon-sol-tools-024f093585ac4d97d674e254658f4a44275b8b9e.tar.xz
dexon-sol-tools-024f093585ac4d97d674e254658f4a44275b8b9e.tar.zst
dexon-sol-tools-024f093585ac4d97d674e254658f4a44275b8b9e.zip
Fix Portal topbar so that it displays the mobile menu
Diffstat (limited to 'packages')
-rw-r--r--packages/website/ts/components/top_bar.tsx14
1 files changed, 6 insertions, 8 deletions
diff --git a/packages/website/ts/components/top_bar.tsx b/packages/website/ts/components/top_bar.tsx
index 601471222..c07366a0c 100644
--- a/packages/website/ts/components/top_bar.tsx
+++ b/packages/website/ts/components/top_bar.tsx
@@ -167,15 +167,13 @@ export class TopBar extends React.Component<TopBarProps, TopBarState> {
</div>
</div>
)}
- {this.props.blockchainIsLoaded &&
- !_.isEmpty(this.props.userAddress) && <div className="col col-5">{this._renderUser()}</div>}
- {!this._isViewingPortal() && (
- <div className={`col ${isFullWidthPage ? 'col-2 pl2' : 'col-1'} md-hide lg-hide`}>
- <div style={menuIconStyle}>
- <i className="zmdi zmdi-menu" onClick={this._onMenuButtonClick.bind(this)} />
- </div>
+ {this.props.blockchainIsLoaded && _.isEmpty(this.props.userAddress) &&
+ <div className="col col-5 sm-hide xs-hide">{this._renderUser()}</div>}
+ <div className={`col ${isFullWidthPage ? 'col-2 pl2' : 'col-1'} md-hide lg-hide`}>
+ <div style={menuIconStyle}>
+ <i className="zmdi zmdi-menu" onClick={this._onMenuButtonClick.bind(this)} />
</div>
- )}
+ </div>
</div>
{this._renderDrawer()}
</div>