diff options
author | Fabio Berger <me@fabioberger.com> | 2018-10-19 16:44:27 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-10-19 16:44:27 +0800 |
commit | ee6bb229e0f912e2ccd9aff70ebf82d98b312251 (patch) | |
tree | 77c4c81c8befe6d714bf1c0b5199eaee3ae8e6eb | |
parent | 65d85ca5008fe0c307506b388d6ace858122f8ad (diff) | |
download | dexon-sol-tools-ee6bb229e0f912e2ccd9aff70ebf82d98b312251.tar.gz dexon-sol-tools-ee6bb229e0f912e2ccd9aff70ebf82d98b312251.tar.zst dexon-sol-tools-ee6bb229e0f912e2ccd9aff70ebf82d98b312251.zip |
Don't show topBar menu items in sidebar on wiki
-rw-r--r-- | packages/website/ts/pages/wiki/wiki.tsx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/website/ts/pages/wiki/wiki.tsx b/packages/website/ts/pages/wiki/wiki.tsx index fdca61e39..e62300ddf 100644 --- a/packages/website/ts/pages/wiki/wiki.tsx +++ b/packages/website/ts/pages/wiki/wiki.tsx @@ -73,10 +73,14 @@ export class Wiki extends React.Component<WikiProps, WikiState> { {this._renderWikiArticles()} </div> ); + const isSmallScreen = this.props.screenWidth === ScreenWidths.Sm; const sidebar = _.isUndefined(this.state.articlesBySection) ? ( <div /> ) : ( - <NestedSidebarMenu sidebarHeader={this._renderSidebarHeader()} sectionNameToLinks={sectionNameToLinks} /> + <NestedSidebarMenu + sidebarHeader={isSmallScreen ? this._renderSidebarHeader() : undefined} + sectionNameToLinks={sectionNameToLinks} + /> ); return ( <DevelopersPage |