Changeset be373a8 for client_app/src/components/main
- Timestamp:
- 01/14/21 03:04:24 (4 years ago)
- Branches:
- master
- Children:
- db94dbd
- Parents:
- 580ba1a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
client_app/src/components/main/App.js
r580ba1a rbe373a8 20 20 import EditUser from "../account_edit/user_edit"; 21 21 import EditCompany from "../account_edit/company_edit"; 22 import EditTeam from "../account_edit/team_edit"; 22 23 23 24 class App extends Component{ … … 53 54 <Route path={"/user/edit"} render={() => <EditUser oldUser={this.state.currentUser} updateUser={this.updateUser} message={this.setSuccess}/>}/> 54 55 <Route path={"/company/edit"} render={() => <EditCompany oldUser={this.state.currentUser} updateUser={this.updateUser} message={this.setSuccess}/>}/> 56 <Route path={"/team/edit"} render={() => <EditTeam oldUser={this.state.currentUser} updateUser={this.updateUser} message={this.setSuccess}/>}/> 55 57 <Route path={"/logout"} render={() => <Redirect to={"/login"}/>}/> 56 58 <Route path={"/"} render={() => <Redirect to={"/login"}/>}/> … … 76 78 setSuccess = (message) => { 77 79 this.setState({ 78 success: message 80 success: message, 81 error: null 79 82 }) 80 83 }
Note:
See TracChangeset
for help on using the changeset viewer.