Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bodysch-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
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
KSZK
DevTeam
org
BodySCH
bodysch-frontend
Commits
b6f42f66
Verified
Commit
b6f42f66
authored
3 years ago
by
Rafael László
Browse files
Options
Downloads
Patches
Plain Diff
Add Members component in about page
parent
6be66a1a
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!19
fix type imports
,
!16
About page
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/pages/AboutPage.tsx
+22
-14
22 additions, 14 deletions
src/pages/AboutPage.tsx
with
22 additions
and
14 deletions
src/pages/AboutPage.tsx
+
22
−
14
View file @
b6f42f66
import
{
Box
,
CircularProgress
,
Typography
}
from
'
@material-ui/core
'
;
import
{
Box
,
CircularProgress
,
Typography
}
from
'
@material-ui/core
'
;
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
{
StaffResponse
}
from
'
../client/types
'
;
import
AboutCard
from
'
../components/AboutCard
'
;
import
AboutCard
from
'
../components/AboutCard
'
;
import
Gallery
from
'
../components/Gallery
'
;
import
Gallery
from
'
../components/Gallery
'
;
import
MemberCard
from
'
../components/MemberCard
'
;
import
MemberCard
from
'
../components/MemberCard
'
;
import
useGetStaff
from
'
../hooks/useGetStaffs
'
;
import
useGetStaff
from
'
../hooks/useGetStaffs
'
;
import
Page
from
'
./Page
'
;
import
Page
from
'
./Page
'
;
const
Members
:
React
.
FC
<
{
data
:
StaffResponse
}
>
=
({
data
})
=>
{
if
(
data
.
length
===
0
)
{
return
<
Typography
>
Nincs találat
</
Typography
>;
}
return
(
<>
{
data
?.
map
((
m
)
=>
(
<
Box
m
=
{
3
}
key
=
{
m
.
email
}
>
<
MemberCard
name
=
{
m
.
name
}
email
=
{
m
.
email
}
acceptedPicture
=
{
m
.
acceptedPicture
}
staffMemberText
=
{
m
.
staffMemberText
}
/>
</
Box
>
))
}
</>
);
};
const
AboutPage
:
React
.
FC
=
()
=>
{
const
AboutPage
:
React
.
FC
=
()
=>
{
const
{
data
,
status
}
=
useGetStaff
();
const
{
data
,
status
}
=
useGetStaff
();
...
@@ -26,20 +47,7 @@ const AboutPage: React.FC = () => {
...
@@ -26,20 +47,7 @@ const AboutPage: React.FC = () => {
</
Typography
>
</
Typography
>
</
Box
>
</
Box
>
<
Box
marginBottom
=
{
8
}
display
=
"flex"
justifyContent
=
"center"
flexWrap
=
"wrap"
>
<
Box
marginBottom
=
{
8
}
display
=
"flex"
justifyContent
=
"center"
flexWrap
=
"wrap"
>
{
!
data
||
status
===
'
loading
'
?
(
{
!
data
||
status
===
'
loading
'
?
<
CircularProgress
/>
:
<
Members
data
=
{
data
}
/>
}
<
CircularProgress
/>
)
:
(
data
?.
map
((
m
)
=>
(
<
Box
m
=
{
3
}
key
=
{
m
.
email
}
>
<
MemberCard
name
=
{
m
.
name
}
email
=
{
m
.
email
}
acceptedPicture
=
{
m
.
acceptedPicture
}
staffMemberText
=
{
m
.
staffMemberText
}
/>
</
Box
>
))
)
}
</
Box
>
</
Box
>
<
Box
marginY
=
{
4
}
>
<
Box
marginY
=
{
4
}
>
<
Typography
variant
=
"h4"
color
=
"textPrimary"
>
<
Typography
variant
=
"h4"
color
=
"textPrimary"
>
...
...
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