Last change
on this file since db94dbd was db94dbd, checked in by Vzdra <vladko.zdravkovski@…>, 3 years ago |
work register
|
-
Property mode
set to
100644
|
File size:
1.1 KB
|
Rev | Line | |
---|
[48e4a3e] | 1 | import React from 'react';
|
---|
| 2 | import {Link, Redirect} from 'react-router-dom';
|
---|
| 3 | import { Container, Card, Button } from 'semantic-ui-react';
|
---|
[2c06dce] | 4 | import Projects from "../item_components/project_component";
|
---|
[48e4a3e] | 5 |
|
---|
| 6 |
|
---|
| 7 | const TeamProjects = (props) =>{
|
---|
| 8 | if(props.userProfile.type==="TEAM"){
|
---|
| 9 | if(props.userProfile.email!=null){
|
---|
| 10 | return(
|
---|
| 11 | <Container textAlign="left">
|
---|
[db94dbd] | 12 | <Button as={Link} to={"/register/project"} primary>Add</Button>
|
---|
| 13 | <h1>Registered Projects:</h1>
|
---|
[48e4a3e] | 14 | {props.userProfile.projects.map(item =>{
|
---|
| 15 | return <Projects
|
---|
[58ceab3] | 16 | title={item.title}
|
---|
[48e4a3e] | 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 |
|
---|
| 34 | export default TeamProjects; |
---|
Note:
See
TracBrowser
for help on using the repository browser.