Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
kszkepzes-frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
Köpeczi-Bócz Gergely
kszkepzes-frontend
Commits
28a8cf57
Commit
28a8cf57
authored
Feb 6, 2018
by
Barnabás Czémán
Browse files
Options
Downloads
Patches
Plain Diff
Change menu items rendering
parent
0cc97bf9
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/components/Header.js
+32
-17
32 additions, 17 deletions
src/components/Header.js
with
32 additions
and
17 deletions
src/components/Header.js
+
32
−
17
View file @
28a8cf57
...
...
@@ -12,14 +12,34 @@ import { connect } from 'react-redux';
import
{
getUserData
}
from
'
../actions
'
;
import
KSZKlogo
from
'
./images/kszk_logo.svg
'
;
const
menuItems
=
[
{
text
:
'
Főoldal
'
,
to
:
'
/home
'
,
prefix
:
<
Image
size
=
'
mini
'
src
=
{
KSZKlogo
}
style
=
{{
marginRight
:
'
1.5em
'
}}
/>
,
},
{
text
:
'
Hírek
'
,
to
:
'
/news
'
,
prefix
:
''
,
},
{
text
:
'
Köreink
'
,
to
:
'
/groups
'
,
prefix
:
''
,
},
{
text
:
'
Ütemterv
'
,
to
:
'
/schedule
'
,
prefix
:
''
,
},
]
const
FixedMenu
=
({
user
})
=>
(
<
Menu
fixed
=
'
top
'
size
=
'
large
'
pointing
>
<
Container
>
<
Menu
.
Item
as
=
{
Link
}
to
=
'
/home
'
>
Főoldal
<
/Menu.Item
>
<
Menu
.
Item
as
=
{
Link
}
to
=
'
/news
'
>
Hírek
<
/Menu.Item
>
<
Menu
.
Item
as
=
{
Link
}
to
=
'
/groups
'
>
Köreink
<
/Menu.Item
>
{
/* <Menu.Item as={Link} to='/trainers'>Képzők</Menu.Item> */
}
<
Menu
.
Item
as
=
{
Link
}
to
=
'
/schedule
'
>
Ütemterv
<
/Menu.Item
>
{
menuItems
.
map
(
(
item
,
i
)
=>
<
Menu
.
Item
key
=
{
i
}
as
=
{
Link
}
to
=
{
item
.
to
}
>
{
item
.
text
}
<
/Menu.Item>
)
}
<
Menu
.
Menu
position
=
'
right
'
>
<
Menu
.
Item
className
=
'
item
'
>
...
...
@@ -71,18 +91,12 @@ class Header extends Component {
<
Segment
inverted
textAlign
=
'
center
'
vertical
>
<
Container
>
<
Menu
inverted
secondary
size
=
'
large
'
>
<
Menu
.
Item
as
=
{
Link
}
to
=
'
/home
'
>
<
Image
size
=
'
mini
'
src
=
{
KSZKlogo
}
style
=
{{
marginRight
:
'
1.5em
'
}}
/
>
Főoldal
<
/Menu.Item
>
<
Menu
.
Item
as
=
{
Link
}
to
=
'
/news
'
>
Hírek
<
/Menu.Item
>
<
Menu
.
Item
as
=
{
Link
}
to
=
'
/groups
'
>
Köreink
<
/Menu.Item
>
{
/* <Menu.Item as={Link} to='/trainers'>Képzők</Menu.Item> */
}
<
Menu
.
Item
as
=
{
Link
}
to
=
'
/schedule
'
>
Ütemterv
<
/Menu.Item
>
{
menuItems
.
map
(
(
item
,
i
)
=>
(
<
Menu
.
Item
key
=
{
i
}
as
=
{
Link
}
to
=
{
item
.
to
}
>
{
item
.
prefix
}{
item
.
text
}
<
/Menu.Item
>
)
)}
<
Menu
.
Item
position
=
'
right
'
>
{
...
...
@@ -95,6 +109,7 @@ class Header extends Component {
<
Button
as
=
'
a
'
href
=
'
/api/v1/login/authsch/
'
inverted
>
Bejelentkezés
<
/Button
>
}
<
/Menu.Item
>
<
/Menu
>
<
/Container
>
<
/Segment
>
...
...
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