Fakultas Ilmu Komputer UI

Commit 4fe512fe authored by M. Reza Qorib's avatar M. Reza Qorib
Browse files

[#140654507] #12 on progress to make cancel applicancy

parent dafdd8b5
......@@ -38,7 +38,7 @@ export default class App extends React.Component {
<Route path="/login" component={Login} />
<Route path="/register" component={CompanyRegister} />
<Route component={Dashboard} onEnter={this.handleAuth}>
<Route path="/" component={Profile} />
<Route path="/" component={VacancyPage} />
<Route path="/profile" component={Profile} />
<Route path="/lowongan" component={VacancyPage} />
<Route path="/users" component={Profile} />
......
......@@ -29,7 +29,7 @@ export default class VacancyPage extends React.Component {
<VacancyList key={1} studentId={student.id} url="/vacancies/" />
</Pane>
<Pane label="Lamaran saya" >
<VacancyList key={2} studentId={student.id} url={`/students/${student.id}/applied-vacancies/`} />
<VacancyList key={2} status="batal" studentId={student.id} url={`/students/${student.id}/applied-vacancies/`} />
</Pane>
<Pane label="Lamaran Ditandai" >
<VacancyList key={3} studentId={student.id} url={`/students/${student.id}/bookmarked-vacancies/`} />
......
......@@ -10,6 +10,9 @@ export default class ModalAlert extends React.Component {
coverLetter: React.PropTypes.string.isRequired,
};
static successResponse = 'Pendaftaran anda berhasil direkam. Harap menunggu kabar selanjutnya dari pihak yang terkait\n';
static failedResponse = 'Maaf pendaftaran yang anda lakukan gagal. Harap ulangi pendaftaran atau hubungi administrator\n';
constructor(props) {
super(props);
/* istanbul ignore next */
......@@ -53,7 +56,7 @@ export default class ModalAlert extends React.Component {
onClose={this.close}
size="small"
basic
trigger={<Button color="blue" onClick={this.handleOpen}> Proceed <Icon name="right chevron" /></Button>}
trigger={<Button color="blue" onClick={this.handleOpen}> Daftar <Icon name="right chevron" /></Button>}
>
<Modal.Header>{this.state.header}</Modal.Header>
<Modal.Content>
......
......@@ -50,7 +50,7 @@ export default class Vacancy extends React.Component {
<ApplyModal
id={this.props.data.id} data={{ header: this.props.data.name,
description: this.props.data.description }} buttonTitle="Daftar"
description: this.props.data.description }} buttonTitle="Detail"
/>
</Item.Extra>
......
......@@ -8,10 +8,12 @@ export default class VacancyList extends React.Component {
static propTypes = {
url: React.PropTypes.string.isRequired,
studentId: React.PropTypes.number.isRequired,
status: React.PropTypes.string,
};
static defaultProps = {
bookmarkList: false,
status: "daftar",
};
constructor(props) {
......
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