source: client_app/src/components/work/user_projects.js@ e857530

Last change on this file since e857530 was bf9486e, checked in by Vzdra <vladko.zdravkovski@…>, 3 years ago

bugfixes

  • Property mode set to 100644
File size: 868 bytes
Line 
1import {Card, Container} from "semantic-ui-react";
2import {Redirect} from "react-router-dom";
3import React from "react";
4import Projects from "../item_components/project_component";
5
6const UserProjects = (props) =>{
7 if(props.userProfile.type==="USER"){
8 if(props.userProfile.email!=null){
9 return(
10 <Container>
11 <h1>Projects for you!</h1>
12 {props.userProfile.projects.map((item,index) =>{
13 return <Projects
14 search={true}
15 key={item.id}
16 index={index}
17 item={item}
18 />})
19 }
20 </Container>
21 );
22 }
23 }
24
25 return (
26 <Redirect to={"/login"}/>
27 );
28}
29
30export default UserProjects;
Note: See TracBrowser for help on using the repository browser.