source: client_app/src/components/data/components/user_jobs.js@ 96eb8bc

Last change on this file since 96eb8bc was 96eb8bc, checked in by i-ina <76742075+i-ina@…>, 3 years ago

added projects render

  • Property mode set to 100644
File size: 1.0 KB
Line 
1import React from 'react';
2import { Redirect } from 'react-router-dom';
3import { Container, Card } from 'semantic-ui-react';
4import Jobs from '../components/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 title={item.title}
16 description={item.description}
17 accountName={item.accountName}
18 accountEmail={item.accountEmail}
19 skills={item.skillsRequired}
20 type={props.userProfile.type}
21 />
22 })}
23 </Container>
24 );
25 }
26 }
27
28 return (
29 <Redirect to={"/login"}/>
30 );
31}
32
33export default UserJobs;
Note: See TracBrowser for help on using the repository browser.