Changeset a3d63eb
- Timestamp:
- 03/03/24 21:20:11 (15 months ago)
- Branches:
- main
- Children:
- 303f51d
- Parents:
- 748b7f6
- Location:
- my-react-app/src
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
my-react-app/src/App.js
r748b7f6 ra3d63eb 14 14 import { CuisineContext } from './components/CuisineContext'; 15 15 import RestaurantInfo from "./components/RestaurantInfo"; 16 import LoginForm from "./components/Login"; 16 17 17 18 const App = () => { … … 30 31 <Route path="/reservationConfirmation/:tableNumber/:timeSlot/:restaurantId" element={<ReservationConfirmation />} /> 31 32 <Route path="/reservations/reservationEdit/:reservationId" element={<ReservationEdit />} /> 33 <Route path={"/login"} exact render={() => <LoginForm login={this.login}/>}/> 32 34 <Route path="/error" element={<ErrorPage/>}/> 33 35 </Routes> -
my-react-app/src/components/Header.js
r748b7f6 ra3d63eb 26 26 <Link className="nav-link" to="/reservations">Reservations</Link> 27 27 </li> 28 <form className="form-inline mt-2 mt-md-0 ml-3"> 29 <Link className="btn btn-outline-info my-2 my-sm-0" to={"/login"}>Login</Link> 30 </form> 28 31 </ul> 29 32 </div>
Note:
See TracChangeset
for help on using the changeset viewer.