Skip to content

Commit

Permalink
Hide TOC menu when onPageNav is not separate (#768)
Browse files Browse the repository at this point in the history
* (bug) - Mobile menu when onPageNav is separate

* fixed lint

* fixed lint

* removed whitespace in brackets

* refactored

* refactor

* Prettier
  • Loading branch information
Thai56 authored and yangshun committed Jun 16, 2018
1 parent 371fdda commit 7bef1b9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/core/nav/SideNav.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,11 @@ class SideNav extends React.Component {
{this.getLocalizedCategoryString(this.props.current.category)}
</span>
</h2>
<div className="tocToggler" id="tocToggler">
<i className="icon-toc" />
</div>
{siteConfig.onPageNav === 'separate' && (
<div className="tocToggler" id="tocToggler">
<i className="icon-toc" />
</div>
)}
</div>
<div className="navGroups">
{this.props.contents.map(this.renderCategory, this)}
Expand Down

0 comments on commit 7bef1b9

Please sign in to comment.