Fakultas Ilmu Komputer UI

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
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}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment