Last change
on this file since 21175ba was c9fa474, checked in by i-ina <76742075+i-ina@…>, 3 years ago |
cleaning
|
-
Property mode
set to
100644
|
File size:
1.0 KB
|
Rev | Line | |
---|
[fc8421e] | 1 | import React from 'react';
|
---|
| 2 | import { Redirect } from 'react-router-dom';
|
---|
[2e507a8] | 3 | import { Container, Card } from 'semantic-ui-react';
|
---|
[2c06dce] | 4 | import Jobs from '../item_components/job_component';
|
---|
[fc8421e] | 5 |
|
---|
| 6 |
|
---|
| 7 | const UserJobs = (props) =>{
|
---|
[2e507a8] | 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 | }
|
---|
[fc8421e] | 26 | }
|
---|
| 27 |
|
---|
| 28 | return (
|
---|
| 29 | <Redirect to={"/login"}/>
|
---|
| 30 | );
|
---|
| 31 | }
|
---|
| 32 |
|
---|
| 33 | export default UserJobs; |
---|
Note:
See
TracBrowser
for help on using the repository browser.