Last change
on this file was bf9486e, checked in by Vzdra <vladko.zdravkovski@…>, 3 years ago |
bugfixes
|
-
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';
|
---|
[6729ba5] | 3 | import {Link} from "react-router-dom";
|
---|
[2e507a8] | 4 |
|
---|
| 5 | const Projects = (props) => {
|
---|
| 6 |
|
---|
| 7 | return(
|
---|
| 8 | <Segment>
|
---|
[ed3f5c4] | 9 | <Header as="h3">{props.item.title}</Header>
|
---|
[bf9486e] | 10 | {!props.search ? <Button primary as={Link} to={{
|
---|
[6729ba5] | 11 | pathname: "/edit/project",
|
---|
| 12 | state: {
|
---|
| 13 | index: props.index,
|
---|
| 14 | item: props.item
|
---|
| 15 | }
|
---|
| 16 | }}>Edit</Button> : <span> </span>}
|
---|
[ed3f5c4] | 17 | <Segment>{props.item.description}</Segment>
|
---|
[2e507a8] | 18 | <Segment>
|
---|
[ed3f5c4] | 19 | <Header as="h5" color="grey">{props.item.accountName}</Header>
|
---|
| 20 | <Header as="h4" color="blue">Owner Mail: {props.item.accountEmail}</Header>
|
---|
[2e507a8] | 21 | </Segment>
|
---|
| 22 | <Segment>
|
---|
| 23 | <Header as="h3">Skills Required:</Header>
|
---|
| 24 | <List>
|
---|
[ed3f5c4] | 25 | {props.item.skillsRequired.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 Projects; |
---|
Note:
See
TracBrowser
for help on using the repository browser.