Last change
on this file since df62f68 was ed3f5c4, checked in by Vzdra <vladko.zdravkovski@…>, 4 years ago |
more groundwork
|
-
Property mode
set to
100644
|
File size:
819 bytes
|
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, index) =>{
|
---|
14 | return <Jobs
|
---|
15 | key={item.id}
|
---|
16 | index={index}
|
---|
17 | item={item}
|
---|
18 | />
|
---|
19 | })}
|
---|
20 | </Container>
|
---|
21 | );
|
---|
22 | }
|
---|
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.