source: client_app/src/components/item_components/project_component.js

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
Line 
1import React from 'react';
2import {Header, List, Segment, Button} from 'semantic-ui-react';
3import {Link} from "react-router-dom";
4
5const Projects = (props) => {
6
7 return(
8 <Segment>
9 <Header as="h3">{props.item.title}</Header>
10 {!props.search ? <Button primary as={Link} to={{
11 pathname: "/edit/project",
12 state: {
13 index: props.index,
14 item: props.item
15 }
16 }}>Edit</Button> : <span> </span>}
17 <Segment>{props.item.description}</Segment>
18 <Segment>
19 <Header as="h5" color="grey">{props.item.accountName}</Header>
20 <Header as="h4" color="blue">Owner Mail: {props.item.accountEmail}</Header>
21 </Segment>
22 <Segment>
23 <Header as="h3">Skills Required:</Header>
24 <List>
25 {props.item.skillsRequired.map(skill => {
26 return <List.Item key={skill.id}>{skill.name}</List.Item>
27 })}
28 </List>
29 </Segment>
30 </Segment>
31 );
32}
33
34export default Projects;
Note: See TracBrowser for help on using the repository browser.