source: client_app/src/components/work/team_projects.js@ c9fa474

Last change on this file since c9fa474 was c9fa474, checked in by i-ina <76742075+i-ina@…>, 3 years ago

cleaning

  • Property mode set to 100644
File size: 1.1 KB
Line 
1import React from 'react';
2import {Link, Redirect} from 'react-router-dom';
3import { Container, Card, Button } from 'semantic-ui-react';
4import Projects from "../item_components/project_component";
5
6
7const TeamProjects = (props) =>{
8 if(props.userProfile.type==="TEAM"){
9 if(props.userProfile.email!=null){
10 return(
11 <Container textAlign="left">
12 <Button as={Link} to={"/project/add"} primary>Add</Button>
13 <h1>Registered Jobs:</h1>
14 {props.userProfile.projects.map(item =>{
15 return <Projects
16 title={item.title}
17 description={item.description}
18 accountName={item.accountName}
19 accountEmail={item.accountEmail}
20 skills={item.skillsRequired}
21 type={props.userProfile.type}
22 />
23 })}
24 </Container>
25 );
26 }
27 }
28
29 return (
30 <Redirect to={"/login"}/>
31 );
32}
33
34export default TeamProjects;
Note: See TracBrowser for help on using the repository browser.