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
|
Rev | Line | |
---|
[2e507a8] | 1 | import React from 'react';
|
---|
| 2 | import {Link, Redirect} from 'react-router-dom';
|
---|
| 3 | import { Container, Card, Button } from 'semantic-ui-react';
|
---|
[2c06dce] | 4 | import Jobs from '../item_components/job_component';
|
---|
[2e507a8] | 5 |
|
---|
| 6 |
|
---|
| 7 | const CompanyJobs = (props) =>{
|
---|
| 8 | if(props.userProfile.type==="COMPANY"){
|
---|
| 9 | if(props.userProfile.email!=null){
|
---|
| 10 | return(
|
---|
| 11 | <Container textAlign="left">
|
---|
[db94dbd] | 12 | <Button as={Link} to={"/register/job"} primary>Add</Button>
|
---|
[2e507a8] | 13 | <h1>Registered Jobs:</h1>
|
---|
[ed3f5c4] | 14 | {props.userProfile.jobs.map((item, index) =>{
|
---|
[2e507a8] | 15 | return <Jobs
|
---|
[ed3f5c4] | 16 | key={item.id}
|
---|
| 17 | index={index}
|
---|
[4302312] | 18 | item={item}
|
---|
[2e507a8] | 19 | />
|
---|
| 20 | })}
|
---|
| 21 | </Container>
|
---|
| 22 | );
|
---|
| 23 | }
|
---|
| 24 | }
|
---|
| 25 |
|
---|
| 26 | return (
|
---|
| 27 | <Redirect to={"/login"}/>
|
---|
| 28 | );
|
---|
| 29 | }
|
---|
| 30 |
|
---|
| 31 | export default CompanyJobs; |
---|
Note:
See
TracBrowser
for help on using the repository browser.