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

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

bugfix and logging

  • Property mode set to 100644
File size: 910 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 console.log(props.userProfile.jobs);
11 return(
12 <Container textAlign="left">
13 <h1>Jobs for you!</h1>
14 {props.userProfile.jobs.map((item, index) =>{
15 return <Jobs
16 search={true}
17 key={item.id}
18 index={index}
19 item={item}
20 />
21 })}
22 </Container>
23 );
24 }
25 }
26
27 return (
28 <Redirect to={"/login"}/>
29 );
30}
31
32export default UserJobs;
Note: See TracBrowser for help on using the repository browser.