source: client_app/src/components/work/user_jobs.js@ 6729ba5

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

more groundwork

  • Property mode set to 100644
File size: 819 bytes
Line 
1import React from 'react';
2import { Redirect } from 'react-router-dom';
3import { Container, Card } from 'semantic-ui-react';
4import Jobs from '../item_components/job_component';
5
6
7const UserJobs = (props) =>{
8 if(props.userProfile.type==="USER"){
9 if(props.userProfile.email!=null){
10 return(
11 <Container textAlign="left">
12 <h1>Jobs for you!</h1>
13 {props.userProfile.jobs.map((item, index) =>{
14 return <Jobs
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 UserJobs;
Note: See TracBrowser for help on using the repository browser.