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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Köpeczi-Bócz Gergely
kszkepzes-frontend
Commits
1faa7339
Commit
1faa7339
authored
5 years ago
by
Rafael László
Browse files
Options
Downloads
Patches
Plain Diff
#63 Groups in cards
parent
3ab86c32
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/components/extra/GroupCard.js
+16
-0
16 additions, 0 deletions
src/components/extra/GroupCard.js
src/components/pages/Groups.js
+3
-6
3 additions, 6 deletions
src/components/pages/Groups.js
with
19 additions
and
6 deletions
src/components/extra/GroupCard.js
0 → 100644
+
16
−
0
View file @
1faa7339
import
React
,
{
Component
}
from
'
react
'
import
{
Segment
,
Header
,
Divider
}
from
'
semantic-ui-react
'
;
class
HiddenForm
extends
Component
{
render
(){
return
(
<
Segment
style
=
{{
marginTop
:
0
}}
>
<
Divider
style
=
{{
fontSize
:
'
2em
'
}}
horizontal
><
Header
as
=
'
h3
'
style
=
{{
fontSize
:
'
1.2em
'
}}
>
{
this
.
props
.
label
}
<
/Header></
Divider
>
<
div
className
=
'
paragraph
'
dangerouslySetInnerHTML
=
{{
__html
:
this
.
props
.
value
}}
>
<
/div
>
<
/Segment
>
)
}
}
export
default
HiddenForm
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/components/pages/Groups.js
+
3
−
6
View file @
1faa7339
import
React
,
{
Component
}
from
'
react
'
;
import
{
Container
,
Header
,
Segment
,
Divider
}
from
'
semantic-ui-react
'
;
import
'
./Groups.css
'
;
import
GrouCard
from
'
../extra/GroupCard
'
import
{
connect
}
from
'
react-redux
'
;
import
{
getGroups
}
from
'
../../actions/groups
'
;
...
...
@@ -30,14 +31,10 @@ class Groups extends Component {
<
/Container
>
<
/Segment
>
<
Segment
style
=
{{
padding
:
'
8
em 0em
'
}}
vertical
>
<
Segment
style
=
{{
padding
:
'
1
em 0em
5em
'
}}
vertical
>
<
Container
text
>
{
this
.
props
.
groups
.
map
(
item
=>
{
return
<
div
key
=
{
item
.
id
}
>
<
Header
as
=
'
h3
'
style
=
{{
fontSize
:
'
2em
'
}}
>
{
item
.
name
}
<
/Header
>
<
div
className
=
'
paragraph
'
dangerouslySetInnerHTML
=
{{
__html
:
item
.
description
}}
>
<
/div
>
<
/div
>
return
<
GrouCard
key
=
{
item
.
id
}
label
=
{
item
.
name
}
value
=
{
item
.
description
}
/
>
})}
<
/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