source:
client_app/src/components/work/user_jobs.js@
55149cd
Last change on this file since 55149cd was ed3f5c4, checked in by , 3 years ago | |
---|---|
|
|
File size: 819 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> | |
[ed3f5c4] | 13 | {props.userProfile.jobs.map((item, index) =>{ |
[2e507a8] | 14 | return <Jobs |
[ed3f5c4] | 15 | key={item.id} |
16 | index={index} | |
[4302312] | 17 | item={item} |
[2e507a8] | 18 | /> |
19 | })} | |
20 | </Container> | |
21 | ); | |
22 | } | |
[fc8421e] | 23 | } |
24 | ||
25 | return ( | |
26 | <Redirect to={"/login"}/> | |
27 | ); | |
28 | } | |
29 | ||
30 | export default UserJobs; |
Note:
See TracBrowser
for help on using the repository browser.