Changeset 6729ba5 for client_app/src/components/item_components
- Timestamp:
- 01/15/21 16:39:45 (4 years ago)
- Branches:
- master
- Children:
- 81c9e25
- Parents:
- ed3f5c4
- Location:
- client_app/src/components/item_components
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
client_app/src/components/item_components/internship_component.js
red3f5c4 r6729ba5 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 Internships = (props) => { … … 6 7 <Segment> 7 8 <Header as="h3">{props.item.title}</Header> 8 {props.item.type!=="USER" ? <Button primary>Edit</Button> : <span> </span>} 9 {props.item.type!=="USER" ? <Button primary as={Link} to={{ 10 pathname: "/edit/internship", 11 state: { 12 index: props.index, 13 item: props.item 14 } 15 }}>Edit</Button> : <span> </span>} 9 16 <Segment>{props.item.description}</Segment> 10 17 <Segment> -
client_app/src/components/item_components/job_component.js
red3f5c4 r6729ba5 7 7 <Segment> 8 8 <Header as="h3">{props.item.title}</Header> 9 {props.item. type!=="USER" ? <Button primary as={Link} to={{9 {props.item.accountType!=="USER" ? <Button primary as={Link} to={{ 10 10 pathname: "/edit/job", 11 11 state: { 12 jobId: props.item.id, 13 accId: props.item.accId, 14 type: props.item.type 12 index: props.index, 13 item: props.item 15 14 } 16 15 }}>Edit</Button> : <span> </span>} -
client_app/src/components/item_components/project_component.js
red3f5c4 r6729ba5 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 Projects = (props) => { … … 7 8 <Segment> 8 9 <Header as="h3">{props.item.title}</Header> 9 {props.item.type!=="USER" ? <Button primary>Edit</Button> : <span> </span>} 10 {props.item.type!=="USER" ? <Button primary as={Link} to={{ 11 pathname: "/edit/project", 12 state: { 13 index: props.index, 14 item: props.item 15 } 16 }}>Edit</Button> : <span> </span>} 10 17 <Segment>{props.item.description}</Segment> 11 18 <Segment>
Note:
See TracChangeset
for help on using the changeset viewer.