source: client_app/src/components/work/user_jobs.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: 861 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 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 UserJobs;
Note: See TracBrowser for help on using the repository browser.