Changeset ed3f5c4 for client_app
- Timestamp:
- 01/15/21 04:14:15 (4 years ago)
- Branches:
- master
- Children:
- 6729ba5
- Parents:
- 4302312
- Location:
- client_app/src/components
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
client_app/src/components/filter/search.js
r4302312 red3f5c4 95 95 </Form> 96 96 97 {formData.items.map( item=> {98 return (item.skillsTrained && <Internships99 item={item} />) || (<Jobsitem={item} />)97 {formData.items.map((item,index) => { 98 return (item.skillsTrained && <Internships key={item.id} index={index} item={item} />) 99 || (<Jobs key={item.id} index={index} item={item} />) 100 100 })} 101 101 </Container> -
client_app/src/components/item_components/internship_component.js
r4302312 red3f5c4 5 5 return( 6 6 <Segment> 7 <Header as="h3">{props. title}</Header>8 {props. type!=="USER" ? <Button primary>Edit</Button> : <span> </span>}9 <Segment>{props. description}</Segment>7 <Header as="h3">{props.item.title}</Header> 8 {props.item.type!=="USER" ? <Button primary>Edit</Button> : <span> </span>} 9 <Segment>{props.item.description}</Segment> 10 10 <Segment> 11 <Header as="h5" color="grey">{props. accountName}</Header>12 <Header as="h4" color="blue">Owner Mail: {props. accountEmail}</Header>11 <Header as="h5" color="grey">{props.item.accountName}</Header> 12 <Header as="h4" color="blue">Owner Mail: {props.item.accountEmail}</Header> 13 13 </Segment> 14 14 <Segment> 15 15 <Header as="h3">Skills Trained:</Header> 16 16 <List> 17 {props. skills.map(skill => {17 {props.item.skillsTrained.map(skill => { 18 18 return <List.Item key={skill.id}>{skill.name}</List.Item> 19 19 })} -
client_app/src/components/item_components/job_component.js
r4302312 red3f5c4 7 7 <Segment> 8 8 <Header as="h3">{props.item.title}</Header> 9 {props. type!=="USER" ? <Button primary as={Link} to={{9 {props.item.type!=="USER" ? <Button primary as={Link} to={{ 10 10 pathname: "/edit/job", 11 11 state: { … … 23 23 <Header as="h3">Skills Required:</Header> 24 24 <List> 25 {props.item.skills .map(skill => {25 {props.item.skillsRequired.map(skill => { 26 26 return <List.Item key={skill.id}>{skill.name}</List.Item> 27 27 })} -
client_app/src/components/item_components/project_component.js
r4302312 red3f5c4 6 6 return( 7 7 <Segment> 8 <Header as="h3">{props. title}</Header>9 {props. type!=="USER" ? <Button primary>Edit</Button> : <span> </span>}10 <Segment>{props. description}</Segment>8 <Header as="h3">{props.item.title}</Header> 9 {props.item.type!=="USER" ? <Button primary>Edit</Button> : <span> </span>} 10 <Segment>{props.item.description}</Segment> 11 11 <Segment> 12 <Header as="h5" color="grey">{props. accountName}</Header>13 <Header as="h4" color="blue">Owner Mail: {props. accountEmail}</Header>12 <Header as="h5" color="grey">{props.item.accountName}</Header> 13 <Header as="h4" color="blue">Owner Mail: {props.item.accountEmail}</Header> 14 14 </Segment> 15 15 <Segment> 16 16 <Header as="h3">Skills Required:</Header> 17 17 <List> 18 {props. skills.map(skill => {18 {props.item.skillsRequired.map(skill => { 19 19 return <List.Item key={skill.id}>{skill.name}</List.Item> 20 20 })} -
client_app/src/components/main/App.js
r4302312 red3f5c4 63 63 <Route path={"/register/project"} render={() => <ProjectRegister accountId={this.state.currentUser.id} type={this.state.currentUser.type} updateProjects={this.updateProjects} />}/> 64 64 <Route path={"/edit/job"} render={(props) => <EditJob {...props} editJob={this.editJob}/>} /> 65 <Route path={"/edit/internship"} render={(props) => <EditInternship {...props} editJob={this.editInternship}/>} />66 <Route path={"/edit/project"} render={(props) => <EditProject {...props} editJob={this.editProject}/>} />65 {/*<Route path={"/edit/internship"} render={(props) => <EditInternship {...props} editJob={this.editInternship}/>} />*/} 66 {/*<Route path={"/edit/project"} render={(props) => <EditProject {...props} editJob={this.editProject}/>} />*/} 67 67 <Route path={"/logout"} render={() => <Redirect to={"/login"}/>}/> 68 68 <Route path={"/"} render={() => <Redirect to={"/login"}/>}/> -
client_app/src/components/work/company_internships.js
r4302312 red3f5c4 12 12 <Button as={Link} to={"/register/internship"} primary>Add</Button> 13 13 <h1>Registered Internships:</h1> 14 {props.userProfile.internships.map( item=>{14 {props.userProfile.internships.map((item, index) =>{ 15 15 return <Internships 16 title={item.title} 17 description={item.description} 18 accountName={item.accountName} 19 accountEmail={item.accountEmail} 20 skills={item.skillsTrained} 21 type={props.userProfile.type} 16 key={item.id} 17 index={index} 18 item={item} 22 19 /> 23 20 })} -
client_app/src/components/work/company_jobs.js
r4302312 red3f5c4 12 12 <Button as={Link} to={"/register/job"} primary>Add</Button> 13 13 <h1>Registered Jobs:</h1> 14 {props.userProfile.jobs.map( item=>{14 {props.userProfile.jobs.map((item, index) =>{ 15 15 return <Jobs 16 key={item.id} 17 index={index} 16 18 item={item} 17 19 /> -
client_app/src/components/work/team_jobs.js
r4302312 red3f5c4 12 12 <Button as={Link} to={"/register/job"} primary>Add</Button> 13 13 <h1>Registered Jobs:</h1> 14 {props.userProfile.jobs.map( item=>{14 {props.userProfile.jobs.map((item, index) =>{ 15 15 return <Jobs 16 key={item.id} 17 index={index} 16 18 item={item} 17 19 /> -
client_app/src/components/work/team_projects.js
r4302312 red3f5c4 12 12 <Button as={Link} to={"/register/project"} primary>Add</Button> 13 13 <h1>Registered Projects:</h1> 14 {props.userProfile.projects.map( item=>{14 {props.userProfile.projects.map((item, index) =>{ 15 15 return <Projects 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 key={item.id} 17 index={index} 18 item={item} 22 19 /> 23 20 })} -
client_app/src/components/work/user_internships.js
r4302312 red3f5c4 10 10 <Container> 11 11 <h1>Internships for you!</h1> 12 {props.userProfile.internships.map( item=>{12 {props.userProfile.internships.map((item, index) =>{ 13 13 return <Internships 14 title={item.title} 15 description={item.description} 16 accountName={item.accountName} 17 accountEmail={item.accountEmail} 18 skills={item.skillsTrained} 19 type={props.userProfile.type} 14 key={item.id} 15 index={index} 16 item={item} 20 17 />}) 21 18 } -
client_app/src/components/work/user_jobs.js
r4302312 red3f5c4 11 11 <Container textAlign="left"> 12 12 <h1>Jobs for you!</h1> 13 {props.userProfile.jobs.map( item=>{13 {props.userProfile.jobs.map((item, index) =>{ 14 14 return <Jobs 15 key={item.id} 16 index={index} 15 17 item={item} 16 18 /> -
client_app/src/components/work/user_projects.js
r4302312 red3f5c4 10 10 <Container> 11 11 <h1>Projects for you!</h1> 12 {props.userProfile.projects.map( item=>{12 {props.userProfile.projects.map((item,index) =>{ 13 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} 14 key={item.id} 15 index={index} 16 item={item} 20 17 />}) 21 18 }
Note:
See TracChangeset
for help on using the changeset viewer.