Changeset 0d7b1a9
- Timestamp:
- 01/15/21 03:52:41 (4 years ago)
- Branches:
- master
- Children:
- 21175ba
- Parents:
- 5b36317
- Location:
- client_app/src/components/item_components
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
client_app/src/components/item_components/internship_component.js
r5b36317 r0d7b1a9 9 9 <Segment>{props.description}</Segment> 10 10 <Segment> 11 <Header as="h5" color="gr ay">{props.accountName}</Header>11 <Header as="h5" color="grey">{props.accountName}</Header> 12 12 <Header as="h4" color="blue">Owner Mail: {props.accountEmail}</Header> 13 13 </Segment> … … 16 16 <List> 17 17 {props.skills.map(skill => { 18 return <List.Item >{skill.name}</List.Item>18 return <List.Item key={skill.id}>{skill.name}</List.Item> 19 19 })} 20 20 </List> -
client_app/src/components/item_components/job_component.js
r5b36317 r0d7b1a9 1 1 import React from 'react'; 2 2 import {Header, List, Segment, Button} from 'semantic-ui-react'; 3 import {Link} from "react-router-dom"; 3 4 4 5 const Jobs = (props) => { … … 6 7 <Segment> 7 8 <Header as="h3">{props.title}</Header> 8 {props.type!=="USER" ? <Button primary>Edit</Button> : <span> </span>} 9 {props.type!=="USER" ? <Button primary as={Link} to={{ 10 pathname: "/edit/job", 11 state: { 12 jobId: props.id, 13 accId: props.accId, 14 type: props.type 15 } 16 }}>Edit</Button> : <span> </span>} 9 17 <Segment>{props.description}</Segment> 10 18 <Segment> 11 <Header as="h5" color="gr ay">{props.accountName}</Header>19 <Header as="h5" color="grey">{props.accountName}</Header> 12 20 <Header as="h4" color="blue">Owner Mail: {props.accountEmail}</Header> 13 21 </Segment> … … 16 24 <List> 17 25 {props.skills.map(skill => { 18 return <List.Item >{skill.name}</List.Item>26 return <List.Item key={skill.id}>{skill.name}</List.Item> 19 27 })} 20 28 </List> -
client_app/src/components/item_components/project_component.js
r5b36317 r0d7b1a9 10 10 <Segment>{props.description}</Segment> 11 11 <Segment> 12 <Header as="h5" color="gr ay">{props.accountName}</Header>12 <Header as="h5" color="grey">{props.accountName}</Header> 13 13 <Header as="h4" color="blue">Owner Mail: {props.accountEmail}</Header> 14 14 </Segment> … … 17 17 <List> 18 18 {props.skills.map(skill => { 19 return <List.Item >{skill.name}</List.Item>19 return <List.Item key={skill.id}>{skill.name}</List.Item> 20 20 })} 21 21 </List>
Note:
See TracChangeset
for help on using the changeset viewer.