Last change
on this file since 7944fab was c9fa474, checked in by i-ina <76742075+i-ina@…>, 4 years ago |
cleaning
|
-
Property mode
set to
100644
|
File size:
1.0 KB
|
Line | |
---|
1 | import React from 'react';
|
---|
2 | import { Redirect } from 'react-router-dom';
|
---|
3 | import { Container, Card } from 'semantic-ui-react';
|
---|
4 | import Jobs from '../item_components/job_component';
|
---|
5 |
|
---|
6 |
|
---|
7 | const UserJobs = (props) =>{
|
---|
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 | }
|
---|
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.