aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-10-19 16:44:27 +0800
committerFabio Berger <me@fabioberger.com>2018-10-19 16:44:27 +0800
commitee6bb229e0f912e2ccd9aff70ebf82d98b312251 (patch)
tree77c4c81c8befe6d714bf1c0b5199eaee3ae8e6eb /packages/website
parent65d85ca5008fe0c307506b388d6ace858122f8ad (diff)
downloaddexon-sol-tools-ee6bb229e0f912e2ccd9aff70ebf82d98b312251.tar
dexon-sol-tools-ee6bb229e0f912e2ccd9aff70ebf82d98b312251.tar.gz
dexon-sol-tools-ee6bb229e0f912e2ccd9aff70ebf82d98b312251.tar.bz2
dexon-sol-tools-ee6bb229e0f912e2ccd9aff70ebf82d98b312251.tar.lz
dexon-sol-tools-ee6bb229e0f912e2ccd9aff70ebf82d98b312251.tar.xz
dexon-sol-tools-ee6bb229e0f912e2ccd9aff70ebf82d98b312251.tar.zst
dexon-sol-tools-ee6bb229e0f912e2ccd9aff70ebf82d98b312251.zip
Don't show topBar menu items in sidebar on wiki
Diffstat (limited to 'packages/website')
-rw-r--r--packages/website/ts/pages/wiki/wiki.tsx6
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