Fakultas Ilmu Komputer UI

Commit a5f9c2ff authored by sirinbaisa's avatar sirinbaisa
Browse files

[140652771] [#19] Applicant List Page

parent 53d19505
import React from 'react';
import { Segment, Button, Icon, Image as ImageComponent, Image, Item, Label } from 'semantic-ui-react'
import ApplicantList from './components/CompanyVacancy';
import Tabs from './components/Tabs';
import Pane from './components/Pane';
import Storage from './lib/Storage';
import VacancyList from './components/VacancyList';
export default class ApplicantPage extends React.Component{
render() {
export default class VacancyPage extends React.Component {
constructor(props) {
super(props);
/* istanbul ignore next */
this.state = {
email: '',
password: '',
errorFlag: false,
vacancies: [],
};
this.handleItemClick = this.handleItemClick.bind(this);
}
handleItemClick = (e, { name }) => this.setState({ activeItem: name });
render() {
const student = Storage.get('user-data').student;
return (
<ApplicantList header="Software Engineer" />
<div className="halamanPendaftar">
<Tabs selected={0}>
<Pane label="Lamaran Baru" >
<VacancyList key={1} studentId={student.id} url="/vacancies/" />
</Pane>
<Pane label="Bintangi" >
<VacancyList key={2} status="Batal" studentId={student.id} url={`/students/${student.id}/applied-vacancies/`} />
</Pane>
<Pane label="Semua Lamaran" >
<VacancyList key={3} studentId={student.id} url={`/students/${student.id}/bookmarked-vacancies/`} />
</Pane>
</Tabs>
</div>
);
}
}
\ No newline at end of file
}
import React from 'react';
import { Segment, Button, Icon, Image as ImageComponent, Image, Item, Label } from 'semantic-ui-react'
import CompanyVacancy from './components/CompanyVacancy';
export default class ApplicantPage extends React.Component{
render() {
return (
<CompanyVacancy header="Software Engineer"/>
);
}
}
\ No newline at end of file
......@@ -5,7 +5,7 @@ import { Segment } from 'semantic-ui-react';
import Dashboard from './Dashboard';
import Login from './Login';
import VacancyPage from './VacancyPage';
import ApplicantPage from './ApplicantPage';
import HomeCompany from './HomeCompany';
import Server from './lib/Server';
import Storage from './lib/Storage';
......@@ -44,7 +44,7 @@ export default class App extends React.Component {
<Route path="/" component={VacancyPage} />
<Route path="/profile" component={Profile} />
<Route path="/lowongan" component={VacancyPage} />
<Route path="/applicant" component={ApplicantPage} />
<Route path="/company" component={HomeCompany} />
<Route path="/users" component={Profile} />
</Route>
<Route path="/home" onEnter={this.handleHome} />
......
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