source: client_app/src/components/data/components/work/company_internships.js@ 58ceab3

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

fixed bugs

  • Property mode set to 100644
File size: 1.1 KB
Line 
1import React from 'react';
2import {Link, Redirect} from 'react-router-dom';
3import { Container, Card, Button } from 'semantic-ui-react';
4import Internships from "../item_components/internship_component";
5
6
7const CompanyInternships = (props) =>{
8 if(props.userProfile.type==="COMPANY"){
9 if(props.userProfile.email!=null){
10 return(
11 <Container textAlign="left">
12 <Button as={Link} to={"/internships/add"} primary>Add</Button>
13 <h1>Registered Jobs:</h1>
14 {props.userProfile.internships.map(item =>{
15 return <Internships
16 title={item.title}
17 description={item.description}
18 accountName={item.accountName}
19 accountEmail={item.accountEmail}
20 skills={item.skillsTrained}
21 type={props.userProfile.type}
22 />
23 })}
24 </Container>
25 );
26 }
27 }
28
29 return (
30 <Redirect to={"/login"}/>
31 );
32}
33
34export default CompanyInternships;
Note: See TracBrowser for help on using the repository browser.