Changeset 19ad843 for client_app/src/components/main
- Timestamp:
- 01/13/21 01:08:25 (4 years ago)
- Branches:
- master
- Children:
- 7944fab
- Parents:
- 351c43f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
client_app/src/components/main/App.js
r351c43f r19ad843 15 15 import CompanyInternships from "../work/company_internships"; 16 16 import UserRegister from "../../repository/register_repo"; 17 import RegisterUser from "../register/register_user_form"; 17 18 18 19 class App extends Component{ … … 32 33 <HeaderComp acc={this.state.currentUser.email} accType={this.state.currentUser.type} name={this.state.currentUser.name} removeState={this.removeState}/> 33 34 <main> 34 <Route path={"/login"} render={() => <Login error={this.state.error} onCompleteForm={this.attemptLogin} loggedIn={this.state.logged}/>} /> 35 <Route path={"/profile"} render={() => <Profile userProfile={this.state.currentUser}/>} /> 36 <Route path={"/user/jobs"} render={() => <UserJobs userProfile={this.state.currentUser}/>} /> 37 <Route path={"/user/internships"} render={() => <UserInternships userProfile={this.state.currentUser}/>} /> 38 <Route path={"/user/projects"} render={() => <UserProjects userProfile={this.state.currentUser}/>} /> 39 <Route path={"/team/jobs"} render={() => <TeamJobs userProfile={this.state.currentUser} />}/> 40 <Route path={"/team/projects"} render={() => <TeamProjects userProfile={this.state.currentUser} />}/> 41 <Route path={"/company/jobs"} render={() => <CompanyJobs userProfile={this.state.currentUser} />}/> 42 <Route path={"/company/internships"} render={() => <CompanyInternships userProfile={this.state.currentUser}/>} /> 43 <Route path={"/profile/edit"} /> 44 <Route path={"/job/edit"} /> 45 <Route path={"/internship/edit"}/> 46 <Route path={"/project/edit"} /> 35 <Route path={"/login"} render={() => <Login error={this.state.error} onCompleteForm={this.attemptLogin} loggedIn={this.state.logged}/>}/> 36 <Route path={"/profile"} render={() => <Profile userProfile={this.state.currentUser}/>}/> 37 <Route path={"/user/jobs"} render={() => <UserJobs userProfile={this.state.currentUser}/>}/> 38 <Route path={"/user/internships"} render={() => <UserInternships userProfile={this.state.currentUser}/>}/> 39 <Route path={"/user/projects"} render={() => <UserProjects userProfile={this.state.currentUser}/>}/> 40 <Route path={"/team/jobs"} render={() => <TeamJobs userProfile={this.state.currentUser}/>}/> 41 <Route path={"/team/projects"} render={() => <TeamProjects userProfile={this.state.currentUser}/>}/> 42 <Route path={"/company/jobs"} render={() => <CompanyJobs userProfile={this.state.currentUser}/>}/> 43 <Route path={"/company/internships"} render={() => <CompanyInternships userProfile={this.state.currentUser}/>}/> 44 <Route path={"/register/user"} render={() => <RegisterUser error={null}/>}/> 47 45 <Route path={"/logout"} render={() => <Redirect to={"/login"}/>}/> 48 46 <Route path={"/"} render={() => <Redirect to={"/login"}/>}/> … … 78 76 }); 79 77 80 81 82 registerUser = () =>{83 UserRegister.userRegister()84 }85 86 78 if(this.state.currentUser.email!=null){ 87 79 return <Redirect to={"/profile"}/>;
Note:
See TracChangeset
for help on using the changeset viewer.