Skip to content
Snippets Groups Projects
Unverified Commit e22934ea authored by chris48s's avatar chris48s Committed by GitHub
Browse files

only display the menu once (#2727)

* only display the menu once
parent b3606724
Branches
Tags
No related merge requests found
......@@ -17,7 +17,11 @@ import DonateBox from './donate'
import MarkupModal from './markup-modal'
import Usage from './usage'
import Footer from './footer'
import { CategoryHeadings, CategoryNav } from './category-headings'
import {
CategoryHeading,
CategoryHeadings,
CategoryNav,
} from './category-headings'
import BadgeExamples from './badge-examples'
import { BaseFont } from './common'
......@@ -105,7 +109,7 @@ export default class Main extends React.Component {
return (
<div key={id}>
<CategoryNav categories={categories} />
<CategoryHeading category={category} />
<BadgeExamples
definitions={definitions}
onClick={this.handleExampleSelected}
......@@ -136,7 +140,12 @@ export default class Main extends React.Component {
)
.notDeprecated()
.toArray()
return this.renderCategory(category, definitions)
return (
<div>
<CategoryNav categories={categories} />
{this.renderCategory(category, definitions)}
</div>
)
} else if (categoryId) {
return (
<div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment