Last change
on this file since 4302312 was 4302312, checked in by Vzdra <vladko.zdravkovski@…>, 3 years ago |
groundwork for job edit
|
-
Property mode
set to
100644
|
File size:
726 bytes
|
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
|
---|
[4302312] | 15 | item={item}
|
---|
[2e507a8] | 16 | />
|
---|
| 17 | })}
|
---|
| 18 | </Container>
|
---|
| 19 | );
|
---|
| 20 | }
|
---|
[fc8421e] | 21 | }
|
---|
| 22 |
|
---|
| 23 | return (
|
---|
| 24 | <Redirect to={"/login"}/>
|
---|
| 25 | );
|
---|
| 26 | }
|
---|
| 27 |
|
---|
| 28 | export default UserJobs; |
---|
Note:
See
TracBrowser
for help on using the repository browser.