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