Last change
on this file since 7944fab was c9fa474, checked in by i-ina <76742075+i-ina@…>, 4 years ago |
cleaning
|
-
Property mode
set to
100644
|
File size:
1.1 KB
|
Line | |
---|
1 | import React from 'react';
|
---|
2 | import {Link, Redirect} from 'react-router-dom';
|
---|
3 | import { Container, Card, Button } from 'semantic-ui-react';
|
---|
4 | import Jobs from '../item_components/job_component';
|
---|
5 |
|
---|
6 |
|
---|
7 | const 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={"/job/add"} primary>Add</Button>
|
---|
13 | <h1>Registered Jobs:</h1>
|
---|
14 | {props.userProfile.jobs.map(item =>{
|
---|
15 | return <Jobs
|
---|
16 | title={item.title}
|
---|
17 | description={item.description}
|
---|
18 | accountName={item.accountName}
|
---|
19 | accountEmail={item.accountEmail}
|
---|
20 | skills={item.skillsRequired}
|
---|
21 | type={props.userProfile.type}
|
---|
22 | />
|
---|
23 | })}
|
---|
24 | </Container>
|
---|
25 | );
|
---|
26 | }
|
---|
27 | }
|
---|
28 |
|
---|
29 | return (
|
---|
30 | <Redirect to={"/login"}/>
|
---|
31 | );
|
---|
32 | }
|
---|
33 |
|
---|
34 | export default CompanyJobs; |
---|
Note:
See
TracBrowser
for help on using the repository browser.