Last change
on this file since 21175ba was 0d7b1a9, checked in by Vzdra <vladko.zdravkovski@…>, 3 years ago |
preparing edit
|
-
Property mode
set to
100644
|
File size:
1.1 KB
|
Rev | Line | |
---|
[2e507a8] | 1 | import React from 'react';
|
---|
| 2 | import {Header, List, Segment, Button} from 'semantic-ui-react';
|
---|
[0d7b1a9] | 3 | import {Link} from "react-router-dom";
|
---|
[2e507a8] | 4 |
|
---|
| 5 | const Jobs = (props) => {
|
---|
| 6 | return(
|
---|
| 7 | <Segment>
|
---|
| 8 | <Header as="h3">{props.title}</Header>
|
---|
[0d7b1a9] | 9 | {props.type!=="USER" ? <Button primary as={Link} to={{
|
---|
| 10 | pathname: "/edit/job",
|
---|
| 11 | state: {
|
---|
| 12 | jobId: props.id,
|
---|
| 13 | accId: props.accId,
|
---|
| 14 | type: props.type
|
---|
| 15 | }
|
---|
| 16 | }}>Edit</Button> : <span> </span>}
|
---|
[2e507a8] | 17 | <Segment>{props.description}</Segment>
|
---|
| 18 | <Segment>
|
---|
[0d7b1a9] | 19 | <Header as="h5" color="grey">{props.accountName}</Header>
|
---|
[2e507a8] | 20 | <Header as="h4" color="blue">Owner Mail: {props.accountEmail}</Header>
|
---|
| 21 | </Segment>
|
---|
| 22 | <Segment>
|
---|
| 23 | <Header as="h3">Skills Required:</Header>
|
---|
| 24 | <List>
|
---|
| 25 | {props.skills.map(skill => {
|
---|
[0d7b1a9] | 26 | return <List.Item key={skill.id}>{skill.name}</List.Item>
|
---|
[2e507a8] | 27 | })}
|
---|
| 28 | </List>
|
---|
| 29 | </Segment>
|
---|
| 30 | </Segment>
|
---|
| 31 | );
|
---|
| 32 | }
|
---|
| 33 |
|
---|
| 34 | export default Jobs; |
---|
Note:
See
TracBrowser
for help on using the repository browser.