source: client_app/src/components/work/user_internships.js@ ed3f5c4

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

more groundwork

  • Property mode set to 100644
File size: 810 bytes
RevLine 
[96eb8bc]1import {Container} from "semantic-ui-react";
[2e507a8]2import {Redirect} from "react-router-dom";
3import React from "react";
[2c06dce]4import Internships from "../item_components/internship_component";
[2e507a8]5
6const UserInternships = (props) =>{
7 if(props.userProfile.type==="USER"){
8 if(props.userProfile.email!=null){
9 return(
[47067ae]10 <Container>
11 <h1>Internships for you!</h1>
[ed3f5c4]12 {props.userProfile.internships.map((item, index) =>{
[47067ae]13 return <Internships
[ed3f5c4]14 key={item.id}
15 index={index}
16 item={item}
[47067ae]17 />})
18 }
[2e507a8]19 </Container>
20 );
21 }
22 }
23
24 return (
25 <Redirect to={"/login"}/>
26 );
27}
28
29export default UserInternships;
Note: See TracBrowser for help on using the repository browser.