source: client_app/src/components/work/user_jobs.js@ 4302312

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

groundwork for job edit

  • Property mode set to 100644
File size: 726 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 =>{
14 return <Jobs
15 item={item}
16 />
17 })}
18 </Container>
19 );
20 }
21 }
22
23 return (
24 <Redirect to={"/login"}/>
25 );
26}
27
28export default UserJobs;
Note: See TracBrowser for help on using the repository browser.