Changeset fc8421e for client_app/src/components/main
- Timestamp:
- 01/10/21 21:57:22 (4 years ago)
- Branches:
- master
- Children:
- 5f9d25a
- Parents:
- 6f9b7b0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
client_app/src/components/main/App.js
r6f9b7b0 rfc8421e 7 7 import './App.css'; 8 8 import UserLogin from "../../repository/login_repo"; 9 import UserJobs from "../data/components/user_jobs"; 9 10 10 11 class App extends Component{ … … 14 15 logged: false, 15 16 error: null, 16 currentUser: {} 17 currentUser: { 18 } 17 19 } 18 20 } … … 25 27 <Route path={"/login"} render={() => <Login error={this.state.error} onCompleteForm={this.attemptLogin} loggedIn={this.state.logged}/>}/> 26 28 <Route path={"/profile"} render={() => <Profile userProfile={this.state.currentUser}/>}/> 29 <Route path={"/jobs"} render={() => <UserJobs userProfile={this.state.currentUser}/>}/> 27 30 <Route path={"/"} render={() => <Redirect to={"/login"}/>}/> 28 31 </main>
Note:
See TracChangeset
for help on using the changeset viewer.