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.0 KB
|
Rev | Line | |
---|
[2e507a8] | 1 | import {Card, Container} from "semantic-ui-react";
|
---|
| 2 | import {Redirect} from "react-router-dom";
|
---|
| 3 | import React from "react";
|
---|
[2c06dce] | 4 | import Projects from "../item_components/project_component";
|
---|
[2e507a8] | 5 |
|
---|
| 6 | const UserProjects = (props) =>{
|
---|
| 7 | if(props.userProfile.type==="USER"){
|
---|
| 8 | if(props.userProfile.email!=null){
|
---|
| 9 | return(
|
---|
[96eb8bc] | 10 | <Container>
|
---|
[2e507a8] | 11 | <h1>Projects for you!</h1>
|
---|
[96eb8bc] | 12 | {props.userProfile.projects.map(item =>{
|
---|
| 13 | return <Projects
|
---|
| 14 | title={item.title}
|
---|
| 15 | description={item.description}
|
---|
| 16 | accountName={item.accountName}
|
---|
| 17 | accountEmail={item.accountEmail}
|
---|
| 18 | skills={item.skillsRequired}
|
---|
| 19 | type={props.userProfile.type}
|
---|
| 20 | />})
|
---|
| 21 | }
|
---|
[2e507a8] | 22 | </Container>
|
---|
| 23 | );
|
---|
| 24 | }
|
---|
| 25 | }
|
---|
| 26 |
|
---|
| 27 | return (
|
---|
| 28 | <Redirect to={"/login"}/>
|
---|
| 29 | );
|
---|
| 30 | }
|
---|
| 31 |
|
---|
| 32 | export default UserProjects; |
---|
Note:
See
TracBrowser
for help on using the repository browser.