Changeset 5b36317
- Timestamp:
- 01/14/21 23:04:01 (4 years ago)
- Branches:
- master
- Children:
- 0d7b1a9
- Parents:
- db94dbd
- Location:
- client_app/src/components
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
client_app/src/components/main/App.js
rdb94dbd r5b36317 60 60 <Route path={"/register/job"} render={() => <JobRegister accountId={this.state.currentUser.id} type={this.state.currentUser.type} updateJobs={this.updateJobs} />}/> 61 61 <Route path={"/register/internship"} render={() => <InternshipRegister accountId={this.state.currentUser.id} type={this.state.currentUser.type} updateInternships={this.updateInternships} />}/> 62 <Route path={"/register/project"} render={() => <ProjectRegister accountId={this.state.currentUser.id} type={this.state.currentUser.type} update Internships={this.updateProjects} />}/>62 <Route path={"/register/project"} render={() => <ProjectRegister accountId={this.state.currentUser.id} type={this.state.currentUser.type} updateProjects={this.updateProjects} />}/> 63 63 <Route path={"/logout"} render={() => <Redirect to={"/login"}/>}/> 64 64 <Route path={"/"} render={() => <Redirect to={"/login"}/>}/> -
client_app/src/components/work_register/internship_register.js
rdb94dbd r5b36317 68 68 } 69 69 70 if(this.state.success===true){ 71 if(this.state.type==="COMPANY"){ 72 return( 73 <Redirect to={"/company/internships"}/> 74 ); 75 }else{ 76 return( 77 <Redirect to={"/profile"}/> 78 ); 79 } 70 if(this.state.success===true) { 71 return ( 72 <Redirect to={"/company/internships"}/> 73 ); 80 74 } 81 75 -
client_app/src/components/work_register/project_register.js
rdb94dbd r5b36317 54 54 this.state.skillsRequired 55 55 ).then(res => { 56 console.log(res); 57 // this.props.updateProjects(res.data); 58 // this.setState({ 59 // success: true, 60 // error: null 61 // }) 56 this.props.updateProjects(res.data); 57 this.setState({ 58 success: true, 59 error: null 60 }) 62 61 }).catch(err => { 63 62 console.log(err); … … 77 76 78 77 if(this.state.success===true){ 79 if(this.state.type==="TEAM"){ 80 return( 81 <Redirect to={"/company/jobs"}/> 82 ); 83 }else{ 84 return( 85 <Redirect to={"/team/jobs"}/> 86 ); 87 } 78 return ( 79 <Redirect to={"/team/projects"}/> 80 ); 88 81 } 89 82
Note:
See TracChangeset
for help on using the changeset viewer.