Changeset db39d9e for my-react-app
- Timestamp:
- 03/05/24 14:27:53 (15 months ago)
- Branches:
- main
- Children:
- 8ca35dc
- Parents:
- 5a9c93b
- Location:
- my-react-app/src/components
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
my-react-app/src/components/AppContent.js
r5a9c93b rdb39d9e 27 27 "POST", 28 28 "/api/login", 29 { login: email, password: password}29 {email: email, password: password} 30 30 ).then((response) => { 31 31 this.setState({componentToShow: "restaurants"}) … … 44 44 firstName: firstName, 45 45 lastName: lastName, 46 login: email,46 email: email, 47 47 password: password 48 48 } -
my-react-app/src/components/AuthContent.js
r5a9c93b rdb39d9e 28 28 <p>Cuisine Type: {restaurant.cuisineType}</p> 29 29 <p>Address: {restaurant.address}</p> 30 {/* Render other properties as needed */} 30 31 31 </div> 32 32 ))} -
my-react-app/src/components/LoginForm.js
r5a9c93b rdb39d9e 58 58 <form onSubmit={this.onSubmitLogin}> 59 59 <div className="form-outline mb-4"> 60 <input type=" login" id="loginEmail" name="login" className="form-control" onChange={this.onChangeHandler}/>61 <label className="form-label" htmlFor=" loginEmail">Email</label>60 <input type="email" id="email" name="email" className="form-control" onChange={this.onChangeHandler}/> 61 <label className="form-label" htmlFor="email">Email</label> 62 62 </div> 63 63 <div className="form-outline mb-4">
Note:
See TracChangeset
for help on using the changeset viewer.