source: client_app/src/components/work/company_jobs.js@ ed3f5c4

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

more groundwork

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