Fakultas Ilmu Komputer UI

Commit 478c8adc authored by M. Reza Qorib's avatar M. Reza Qorib
Browse files

[#144502159] #46 Refactor ProfilePage component to show the number of...

[#144502159] #46 Refactor ProfilePage component to show the number of companies that have accepted the student
parent 2482e004
......@@ -35,6 +35,7 @@ export default class ProfilePage extends React.Component {
show_transcript: '',
},
bagikanTranskrip: '',
acceptedNo: 0,
};
this.getProfile = this.getProfile.bind(this);
this.handleChange = this.handleChange.bind(this);
......@@ -61,6 +62,7 @@ export default class ProfilePage extends React.Component {
photo: data.photo,
show_transcript: data.show_transcript,
bagikanTranskrip: (data.show_transcript ? 'Ya' : 'Tidak'),
acceptedNo: data.accepted_no,
});
}, error => error.then(() => {
// this.modalAlert.open('Gagal Mengambil ', r.error);
......@@ -163,6 +165,7 @@ export default class ProfilePage extends React.Component {
<h5> { this.state.email } </h5>
<h5> { this.state.phone_number } </h5>
<h5> { this.state.cityOfBirth}, { this.state.dateOfBirth } </h5>
<p>Sudah diterima di { this.state.acceptedNo } perusahaan</p>
</div>
<div className="button-profile">
<a href={this.state.resume ? this.state.resume : '#'} ><Button primary size="small">Resume</Button></a>
......
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