Last change
on this file since c9fa474 was c9fa474, checked in by i-ina <76742075+i-ina@…>, 3 years ago |
cleaning
|
-
Property mode
set to
100644
|
File size:
1.1 KB
|
Rev | Line | |
---|
[48e4a3e] | 1 | import React from 'react';
|
---|
| 2 | import {Link, Redirect} from 'react-router-dom';
|
---|
| 3 | import { Container, Card, Button } from 'semantic-ui-react';
|
---|
[2c06dce] | 4 | import Internships from "../item_components/internship_component";
|
---|
[48e4a3e] | 5 |
|
---|
| 6 |
|
---|
| 7 | const 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
|
---|
[58ceab3] | 16 | title={item.title}
|
---|
[48e4a3e] | 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 |
|
---|
| 34 | export default CompanyInternships; |
---|
Note:
See
TracBrowser
for help on using the repository browser.