Changeset 96eb8bc for client_app/src
- Timestamp:
- 01/12/21 21:38:05 (4 years ago)
- Branches:
- master
- Children:
- 48e4a3e
- Parents:
- 47067ae
- Location:
- client_app/src/components/data/components
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
client_app/src/components/data/components/item_components/job_component.js
r47067ae r96eb8bc 3 3 4 4 const Jobs = (props) => { 5 6 5 return( 7 6 <Segment> -
client_app/src/components/data/components/user_internships.js
r47067ae r96eb8bc 1 import {C ard, Container} from "semantic-ui-react";1 import {Container} from "semantic-ui-react"; 2 2 import {Redirect} from "react-router-dom"; 3 3 import React from "react"; -
client_app/src/components/data/components/user_jobs.js
r47067ae r96eb8bc 6 6 7 7 const UserJobs = (props) =>{ 8 var itemsArray = [];9 10 8 if(props.userProfile.type==="USER"){ 11 9 if(props.userProfile.email!=null){ -
client_app/src/components/data/components/user_projects.js
r47067ae r96eb8bc 2 2 import {Redirect} from "react-router-dom"; 3 3 import React from "react"; 4 import Projects from "./item_components/project_component"; 4 5 5 6 const UserProjects = (props) =>{ 6 var itemsArray = [];7 8 7 if(props.userProfile.type==="USER"){ 9 8 if(props.userProfile.email!=null){ 10 props.userProfile.projects.forEach(item => {11 let obj = {}12 obj.header = item.title;13 obj.description = item.description + "\n" + item.accountEmail + " for contact!";14 obj.meta = "Team: " + item.accountName + " / Salary: " + item.salary;15 16 itemsArray.push(obj);17 });18 19 9 return( 20 <Container textAlign="left">10 <Container> 21 11 <h1>Projects for you!</h1> 22 <Card.Group items={itemsArray} /> 12 {props.userProfile.projects.map(item =>{ 13 return <Projects 14 title={item.title} 15 description={item.description} 16 accountName={item.accountName} 17 accountEmail={item.accountEmail} 18 skills={item.skillsRequired} 19 type={props.userProfile.type} 20 />}) 21 } 23 22 </Container> 24 23 );
Note:
See TracChangeset
for help on using the changeset viewer.