From 7bef1b96dc8de8c42795b0983195f66a7ae78c27 Mon Sep 17 00:00:00 2001 From: Thai Date: Fri, 15 Jun 2018 22:16:58 -0600 Subject: [PATCH] Hide TOC menu when onPageNav is not separate (#768) * (bug) - Mobile menu when onPageNav is separate * fixed lint * fixed lint * removed whitespace in brackets * refactored * refactor * Prettier --- lib/core/nav/SideNav.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/core/nav/SideNav.js b/lib/core/nav/SideNav.js index ebae3de063fd..d00de0d09d98 100644 --- a/lib/core/nav/SideNav.js +++ b/lib/core/nav/SideNav.js @@ -28,9 +28,11 @@ class SideNav extends React.Component { {this.getLocalizedCategoryString(this.props.current.category)} -
- -
+ {siteConfig.onPageNav === 'separate' && ( +
+ +
+ )}
{this.props.contents.map(this.renderCategory, this)}