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
This commit is contained in:
Thai 2018-06-15 22:16:58 -06:00 committed by Yangshun Tay
parent 371fdda4a8
commit 7bef1b96dc

View file

@ -28,9 +28,11 @@ class SideNav extends React.Component {
{this.getLocalizedCategoryString(this.props.current.category)}
</span>
</h2>
{siteConfig.onPageNav === 'separate' && (
<div className="tocToggler" id="tocToggler">
<i className="icon-toc" />
</div>
)}
</div>
<div className="navGroups">
{this.props.contents.map(this.renderCategory, this)}