mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-05 20:32:42 +02:00
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:
parent
371fdda4a8
commit
7bef1b96dc
1 changed files with 5 additions and 3 deletions
|
@ -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)}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue