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