Fakultas Ilmu Komputer UI

Skip to content
Snippets Groups Projects
Commit 94f7a533 authored by M. Reza Qorib's avatar M. Reza Qorib
Browse files

Add "tidak ada lamaran" label if there's no applicant

parent 884b8e66
Branches
No related tags found
No related merge requests found
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}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment