source: client_app/src/components/item_components/job_component.js@ df62f68

Last change on this file since df62f68 was 6729ba5, checked in by Vzdra <vladko.zdravkovski@…>, 4 years ago

finished work edit

  • Property mode set to 100644
File size: 1.1 KB
Line 
1import React from 'react';
2import {Header, List, Segment, Button} from 'semantic-ui-react';
3import {Link} from "react-router-dom";
4
5const Jobs = (props) => {
6 return(
7 <Segment>
8 <Header as="h3">{props.item.title}</Header>
9 {props.item.accountType!=="USER" ? <Button primary as={Link} to={{
10 pathname: "/edit/job",
11 state: {
12 index: props.index,
13 item: props.item
14 }
15 }}>Edit</Button> : <span> </span>}
16 <Segment>{props.item.description}</Segment>
17 <Segment>
18 <Header as="h5" color="grey">{props.item.accountName}</Header>
19 <Header as="h4" color="blue">Owner Mail: {props.item.accountEmail}</Header>
20 </Segment>
21 <Segment>
22 <Header as="h3">Skills Required:</Header>
23 <List>
24 {props.item.skillsRequired.map(skill => {
25 return <List.Item key={skill.id}>{skill.name}</List.Item>
26 })}
27 </List>
28 </Segment>
29 </Segment>
30 );
31}
32
33export default Jobs;
Note: See TracBrowser for help on using the repository browser.