Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
shields
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
shields.io
shields
Commits
e22934ea
Unverified
Commit
e22934ea
authored
6 years ago
by
chris48s
Committed by
GitHub
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
only display the menu once (#2727)
* only display the menu once
parent
b3606724
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
frontend/components/main.js
+12
-3
12 additions, 3 deletions
frontend/components/main.js
with
12 additions
and
3 deletions
frontend/components/main.js
+
12
−
3
View file @
e22934ea
...
...
@@ -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
}
>
<
Category
Nav
categor
ies
=
{
categor
ies
}
/
>
<
Category
Heading
categor
y
=
{
categor
y
}
/
>
<
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
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment