aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/pages/wiki/wiki.tsx
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-10-20 00:44:47 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-10-20 00:44:47 +0800
commit100f446031e84c367f1d0852ef60fd04d4544b9f (patch)
treee0e2c6c896a7f0b4e738727f6baa8a30e5234695 /packages/website/ts/pages/wiki/wiki.tsx
parent48f1e6057c878a948d21ed7d2214c7792c648f75 (diff)
parenteb3a4d2fabcab3c2423d5827aba2fcaffc348320 (diff)
downloaddexon-0x-contracts-100f446031e84c367f1d0852ef60fd04d4544b9f.tar.gz
dexon-0x-contracts-100f446031e84c367f1d0852ef60fd04d4544b9f.tar.zst
dexon-0x-contracts-100f446031e84c367f1d0852ef60fd04d4544b9f.zip
Merge branch 'development' of https://github.com/0xProject/0x-monorepo into feature/instant/beta-render-et-al
Diffstat (limited to 'packages/website/ts/pages/wiki/wiki.tsx')
-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