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
JetBrains YouTrack
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KSZK
DevTeam
kszkepzes
old
kszkepzes-frontend
Commits
28a8cf57
Commit
28a8cf57
authored
7 years ago
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
Hide 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';
...
@@ -12,14 +12,34 @@ import { connect } from 'react-redux';
import
{
getUserData
}
from
'
../actions
'
;
import
{
getUserData
}
from
'
../actions
'
;
import
KSZKlogo
from
'
./images/kszk_logo.svg
'
;
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
})
=>
(
const
FixedMenu
=
({
user
})
=>
(
<
Menu
fixed
=
'
top
'
size
=
'
large
'
pointing
>
<
Menu
fixed
=
'
top
'
size
=
'
large
'
pointing
>
<
Container
>
<
Container
>
<
Menu
.
Item
as
=
{
Link
}
to
=
'
/home
'
>
Főoldal
<
/Menu.Item
>
{
menuItems
.
map
(
(
item
,
i
)
=>
<
Menu
.
Item
key
=
{
i
}
as
=
{
Link
}
to
=
{
item
.
to
}
>
{
item
.
text
}
<
/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
>
<
Menu
.
Menu
position
=
'
right
'
>
<
Menu
.
Menu
position
=
'
right
'
>
<
Menu
.
Item
className
=
'
item
'
>
<
Menu
.
Item
className
=
'
item
'
>
...
@@ -71,18 +91,12 @@ class Header extends Component {
...
@@ -71,18 +91,12 @@ class Header extends Component {
<
Segment
inverted
textAlign
=
'
center
'
vertical
>
<
Segment
inverted
textAlign
=
'
center
'
vertical
>
<
Container
>
<
Container
>
<
Menu
inverted
secondary
size
=
'
large
'
>
<
Menu
inverted
secondary
size
=
'
large
'
>
<
Menu
.
Item
as
=
{
Link
}
to
=
'
/home
'
>
<
Image
{
menuItems
.
map
(
size
=
'
mini
'
(
item
,
i
)
=>
(
src
=
{
KSZKlogo
}
<
Menu
.
Item
key
=
{
i
}
as
=
{
Link
}
to
=
{
item
.
to
}
>
{
item
.
prefix
}{
item
.
text
}
<
/Menu.Item
>
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
>
<
Menu
.
Item
position
=
'
right
'
>
<
Menu
.
Item
position
=
'
right
'
>
{
{
...
@@ -95,6 +109,7 @@ class Header extends Component {
...
@@ -95,6 +109,7 @@ class Header extends Component {
<
Button
as
=
'
a
'
href
=
'
/api/v1/login/authsch/
'
inverted
>
Bejelentkezés
<
/Button
>
<
Button
as
=
'
a
'
href
=
'
/api/v1/login/authsch/
'
inverted
>
Bejelentkezés
<
/Button
>
}
}
<
/Menu.Item
>
<
/Menu.Item
>
<
/Menu
>
<
/Menu
>
<
/Container
>
<
/Container
>
<
/Segment
>
<
/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