source:
client_app/src/components/work/user_jobs.js
Last change on this file was 1b4b6ff, checked in by , 3 years ago | |
---|---|
|
|
File size: 910 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){ | |
[1b4b6ff] | 10 | console.log(props.userProfile.jobs); |
[2e507a8] | 11 | return( |
12 | <Container textAlign="left"> | |
13 | <h1>Jobs for you!</h1> | |
[ed3f5c4] | 14 | {props.userProfile.jobs.map((item, index) =>{ |
[2e507a8] | 15 | return <Jobs |
[bf9486e] | 16 | search={true} |
[ed3f5c4] | 17 | key={item.id} |
18 | index={index} | |
[4302312] | 19 | item={item} |
[2e507a8] | 20 | /> |
21 | })} | |
22 | </Container> | |
23 | ); | |
24 | } | |
[fc8421e] | 25 | } |
26 | ||
27 | return ( | |
28 | <Redirect to={"/login"}/> | |
29 | ); | |
30 | } | |
31 | ||
32 | export default UserJobs; |
Note:
See TracBrowser
for help on using the repository browser.