source: client_app/src/components/data/components/user_jobs.js@ fc8421e

Last change on this file since fc8421e was fc8421e, checked in by i-ina <76742075+i-ina@…>, 3 years ago

initial jobs interface

  • Property mode set to 100644
File size: 984 bytes
Line 
1import React from 'react';
2import { Redirect } from 'react-router-dom';
3import { Container, Card } from 'semantic-ui-react'
4
5
6const UserJobs = (props) =>{
7 var itemsArray = [];
8
9 if(props.userProfile.email!=null){
10 props.userProfile.jobs.forEach(item => {
11 let obj = {}
12 obj.header = item.title;
13 obj.description = item.description + "\n" + "Contact: " + item.accountEmail;
14 if(item.accountType=="TEAM"){
15 obj.meta = "Team: " + item.accountName + " / Salary: " + item.salary
16 }else{
17 obj.meta = "Company: " + item.accountName + " / Salary: " + item.salary
18 }
19
20 itemsArray.push(obj);
21 });
22
23 return(
24 <Container textAlign="left">
25 <h1>Jobs for you!</h1>
26 <Card.Group items={itemsArray} />
27 </Container>
28 );
29 }
30
31 return (
32 <Redirect to={"/login"}/>
33 );
34}
35
36export default UserJobs;
Note: See TracBrowser for help on using the repository browser.