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