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