Changeset 4302312


Ignore:
Timestamp:
01/15/21 03:57:59 (3 years ago)
Author:
Vzdra <vladko.zdravkovski@…>
Branches:
master
Children:
ed3f5c4
Parents:
21175ba
Message:

groundwork for job edit

Location:
client_app/src/components
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • client_app/src/components/filter/search.js

    r21175ba r4302312  
    9797                {formData.items.map(item => {
    9898                    return  (item.skillsTrained && <Internships
    99                             title={item.title}
    100                             description={item.description}
    101                             accountName={item.accountName}
    102                             accountEmail={item.accountEmail}
    103                             skills={item.skillsTrained}
    104                     />) || (<Jobs
    105                         title={item.title}
    106                         description={item.description}
    107                         accountName={item.accountName}
    108                         accountEmail={item.accountEmail}
    109                         skills={item.skillsRequired}
    110                     />)
     99                            item={item} />) || (<Jobs item={item} />)
    111100                })}
    112101            </Container>
  • client_app/src/components/item_components/job_component.js

    r21175ba r4302312  
    66    return(
    77        <Segment>
    8             <Header as="h3">{props.title}</Header>
     8            <Header as="h3">{props.item.title}</Header>
    99            {props.type!=="USER" ? <Button primary as={Link} to={{
    1010                pathname: "/edit/job",
    1111                state: {
    12                     jobId: props.id,
    13                     accId: props.accId,
    14                     type: props.type
     12                    jobId: props.item.id,
     13                    accId: props.item.accId,
     14                    type: props.item.type
    1515                }
    1616            }}>Edit</Button> : <span> </span>}
    17             <Segment>{props.description}</Segment>
     17            <Segment>{props.item.description}</Segment>
    1818            <Segment>
    19                 <Header as="h5" color="grey">{props.accountName}</Header>
    20                 <Header as="h4" color="blue">Owner Mail: {props.accountEmail}</Header>
     19                <Header as="h5" color="grey">{props.item.accountName}</Header>
     20                <Header as="h4" color="blue">Owner Mail: {props.item.accountEmail}</Header>
    2121            </Segment>
    2222            <Segment>
    2323                <Header as="h3">Skills Required:</Header>
    2424                <List>
    25                     {props.skills.map(skill => {
     25                    {props.item.skills.map(skill => {
    2626                        return <List.Item key={skill.id}>{skill.name}</List.Item>
    2727                    })}
  • client_app/src/components/work/company_jobs.js

    r21175ba r4302312  
    1414                    {props.userProfile.jobs.map(item =>{
    1515                        return <Jobs
    16                             title={item.title}
    17                             description={item.description}
    18                             accountName={item.accountName}
    19                             accountEmail={item.accountEmail}
    20                             skills={item.skillsRequired}
    21                             type={props.userProfile.type}
     16                            item={item}
    2217                        />
    2318                    })}
  • client_app/src/components/work/team_jobs.js

    r21175ba r4302312  
    1414                    {props.userProfile.jobs.map(item =>{
    1515                        return <Jobs
    16                             title={item.title}
    17                             description={item.description}
    18                             accountName={item.accountName}
    19                             accountEmail={item.accountEmail}
    20                             skills={item.skillsRequired}
    21                             type={props.userProfile.type}
     16                            item={item}
    2217                        />
    2318                    })}
  • client_app/src/components/work/user_jobs.js

    r21175ba r4302312  
    1313                    {props.userProfile.jobs.map(item =>{
    1414                        return <Jobs
    15                             title={item.title}
    16                             description={item.description}
    17                             accountName={item.accountName}
    18                             accountEmail={item.accountEmail}
    19                             skills={item.skillsRequired}
    20                             type={props.userProfile.type}
     15                            item={item}
    2116                        />
    2217                    })}
Note: See TracChangeset for help on using the changeset viewer.