source: client_app/src/components/work/user_internships.js@ 1b4b6ff

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

bugfix and logging

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