diff options
author | Brandon Millman <brandon.millman@gmail.com> | 2018-06-02 02:05:01 +0800 |
---|---|---|
committer | Brandon Millman <brandon.millman@gmail.com> | 2018-06-02 02:05:01 +0800 |
commit | 559743c91174e0af0b1383af544ce2ffcf54cc38 (patch) | |
tree | 712e0a6ae79f8d03e68e9571f952ee148810b4fe | |
parent | 04a0eae241216cfe822346d02992d24082d94cab (diff) | |
download | dexon-sol-tools-559743c91174e0af0b1383af544ce2ffcf54cc38.tar dexon-sol-tools-559743c91174e0af0b1383af544ce2ffcf54cc38.tar.gz dexon-sol-tools-559743c91174e0af0b1383af544ce2ffcf54cc38.tar.bz2 dexon-sol-tools-559743c91174e0af0b1383af544ce2ffcf54cc38.tar.lz dexon-sol-tools-559743c91174e0af0b1383af544ce2ffcf54cc38.tar.xz dexon-sol-tools-559743c91174e0af0b1383af544ce2ffcf54cc38.tar.zst dexon-sol-tools-559743c91174e0af0b1383af544ce2ffcf54cc38.zip |
Only show ProviderDisplay in portal
-rw-r--r-- | packages/website/ts/components/top_bar/top_bar.tsx | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/packages/website/ts/components/top_bar/top_bar.tsx b/packages/website/ts/components/top_bar/top_bar.tsx index 0855d2584..e2d791ae3 100644 --- a/packages/website/ts/components/top_bar/top_bar.tsx +++ b/packages/website/ts/components/top_bar/top_bar.tsx @@ -261,18 +261,20 @@ export class TopBar extends React.Component<TopBarProps, TopBarState> { </div> </div> )} - <div className="sm-hide xs-hide col col-5" style={{ paddingTop: 8, marginRight: 36 }}> - <ProviderDisplay - dispatcher={this.props.dispatcher} - userAddress={this.props.userAddress} - networkId={this.props.networkId} - injectedProviderName={this.props.injectedProviderName} - providerType={this.props.providerType} - onToggleLedgerDialog={this.props.onToggleLedgerDialog} - blockchain={this.props.blockchain} - blockchainIsLoaded={this.props.blockchainIsLoaded} - /> - </div> + {this._isViewingPortal() && ( + <div className="sm-hide xs-hide col col-5" style={{ paddingTop: 8, marginRight: 36 }}> + <ProviderDisplay + dispatcher={this.props.dispatcher} + userAddress={this.props.userAddress} + networkId={this.props.networkId} + injectedProviderName={this.props.injectedProviderName} + providerType={this.props.providerType} + onToggleLedgerDialog={this.props.onToggleLedgerDialog} + blockchain={this.props.blockchain} + blockchainIsLoaded={this.props.blockchainIsLoaded} + /> + </div> + )} <div className={`col ${isExpandedDisplayType ? 'col-2 pl2' : 'col-1'} md-hide lg-hide`}> <div style={menuIconStyle}> <i className="zmdi zmdi-menu" onClick={this._onMenuButtonClick.bind(this)} /> |