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 { ...@@ -38,7 +38,7 @@ export default class App extends React.Component {
<Route path="/login" component={Login} /> <Route path="/login" component={Login} />
<Route path="/register" component={CompanyRegister} /> <Route path="/register" component={CompanyRegister} />
<Route component={Dashboard} onEnter={this.handleAuth}> <Route component={Dashboard} onEnter={this.handleAuth}>
<Route path="/" component={Profile} /> <Route path="/" component={VacancyPage} />
<Route path="/profile" component={Profile} /> <Route path="/profile" component={Profile} />
<Route path="/lowongan" component={VacancyPage} /> <Route path="/lowongan" component={VacancyPage} />
<Route path="/users" component={Profile} /> <Route path="/users" component={Profile} />
......
...@@ -29,7 +29,7 @@ export default class VacancyPage extends React.Component { ...@@ -29,7 +29,7 @@ export default class VacancyPage extends React.Component {
<VacancyList key={1} studentId={student.id} url="/vacancies/" /> <VacancyList key={1} studentId={student.id} url="/vacancies/" />
</Pane> </Pane>
<Pane label="Lamaran saya" > <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>
<Pane label="Lamaran Ditandai" > <Pane label="Lamaran Ditandai" >
<VacancyList key={3} studentId={student.id} url={`/students/${student.id}/bookmarked-vacancies/`} /> <VacancyList key={3} studentId={student.id} url={`/students/${student.id}/bookmarked-vacancies/`} />
......
...@@ -10,6 +10,9 @@ export default class ModalAlert extends React.Component { ...@@ -10,6 +10,9 @@ export default class ModalAlert extends React.Component {
coverLetter: React.PropTypes.string.isRequired, 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) { constructor(props) {
super(props); super(props);
/* istanbul ignore next */ /* istanbul ignore next */
...@@ -53,7 +56,7 @@ export default class ModalAlert extends React.Component { ...@@ -53,7 +56,7 @@ export default class ModalAlert extends React.Component {
onClose={this.close} onClose={this.close}
size="small" size="small"
basic 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.Header>{this.state.header}</Modal.Header>
<Modal.Content> <Modal.Content>
......
...@@ -50,7 +50,7 @@ export default class Vacancy extends React.Component { ...@@ -50,7 +50,7 @@ export default class Vacancy extends React.Component {
<ApplyModal <ApplyModal
id={this.props.data.id} data={{ header: this.props.data.name, 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> </Item.Extra>
......
...@@ -8,10 +8,12 @@ export default class VacancyList extends React.Component { ...@@ -8,10 +8,12 @@ export default class VacancyList extends React.Component {
static propTypes = { static propTypes = {
url: React.PropTypes.string.isRequired, url: React.PropTypes.string.isRequired,
studentId: React.PropTypes.number.isRequired, studentId: React.PropTypes.number.isRequired,
status: React.PropTypes.string,
}; };
static defaultProps = { static defaultProps = {
bookmarkList: false, bookmarkList: false,
status: "daftar",
}; };
constructor(props) { 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