mirror of
https://github.com/FranP-code/Pomodoro-Timer-with-Clockify-integration.git
synced 2025-10-12 23:52:30 +00:00
27 lines
651 B
JavaScript
27 lines
651 B
JavaScript
import React from 'react'
|
|
|
|
const LoginForm = (props) => {
|
|
return (
|
|
<form onSubmit={props.sendForm}>
|
|
<input
|
|
type="email"
|
|
placeholder="Email"
|
|
onChange= {(e) => {
|
|
props.setEmail(e.target.value)
|
|
}}
|
|
/>
|
|
|
|
<input
|
|
type="password"
|
|
placeholder="Password"
|
|
onChange= { (e) => {
|
|
props.setPassword(e.target.value)
|
|
}}
|
|
/>
|
|
<input type="submit" value="Login"></input>
|
|
</form>
|
|
)
|
|
}
|
|
|
|
export default LoginForm
|