Fakultas Ilmu Komputer UI
Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Fasilkom UI Open Source Software
Kape
Commits
94f7a533
Commit
94f7a533
authored
May 24, 2017
by
M. Reza Qorib
Browse files
Add "tidak ada lamaran" label if there's no applicant
parent
884b8e66
Changes
1
Hide whitespace changes
Inline
Side-by-side
assets/js/components/ApplicantList.jsx
View file @
94f7a533
import
React
from
'
react
'
;
import
{
Item
,
Grid
}
from
'
semantic-ui-react
'
;
import
{
Item
,
Grid
,
Container
}
from
'
semantic-ui-react
'
;
import
Applicant
from
'
./Applicant
'
;
export
default
class
ApplicantList
extends
React
.
Component
{
...
...
@@ -33,6 +33,17 @@ export default class ApplicantList extends React.Component {
}
generateApplicants
()
{
if
(
this
.
state
.
applications
.
length
==
0
){
return
(
<
Item
className
=
"applicantItems"
>
<
Grid
.
Row
>
<
Container
textAlign
=
"center"
>
<
p
>
Tidak ada pelamar
<
br
/></
p
>
</
Container
>
</
Grid
.
Row
>
</
Item
>
);
}
return
this
.
state
.
applications
.
map
(
application
=>
application
.
status
===
this
.
props
.
status
&&
(<
Applicant
key
=
{
application
.
id
}
data
=
{
application
}
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment