Fakultas Ilmu Komputer UI

Vacancy.jsx 1.13 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import React from 'react';
import { Button, Image as ImageComponent, Item, Rating } from 'semantic-ui-react'
import ModalPendaftaran from './ModalPendaftaran';

const defaultImage = "http://semantic-ui.com/images/wireframe/image.png";

export default class Lowongan extends React.Component {
  static propTypes = {
    data: React.PropTypes.object.isRequired,
  };

  render() {
    return (
      <Item >
        <Item.Image size="small" src={this.props.data.company.logo ? this.props.data.company.logo: defaultImage} />
        <Item.Content verticalAlign="middle">
          <Item.Extra>
            <h3>{ this.props.data.name }</h3>
sirinbaisa's avatar
sirinbaisa committed
19
20
21
22

            <div className="bookmark">
            <Rating icon='star'  size='massive' defaultRating={0} maxRating={1} />
            </div>
23
24
25
26
27
28
29
30
31
32
33
34
35
            <h4>{ this.props.data.company.name }</h4>
            <h5>{ this.props.data.company.address }</h5>

            <ModalPendaftaran
              id={this.props.data.id} data={{ header: this.props.data.name,
              description: this.props.data.description }} buttonTitle="Daftar" />

          </Item.Extra>
        </Item.Content>
      </Item>
    );
  }
}