doc: add submit type to signInButton
This commit is contained in:
1 parent
a18db46151
commit
952e45bdb1
1 file changed
+8
-2
+8
-2
@@ -6,7 +6,9 @@ function Login() {
|
|||||||
const [email, setEmail] = useState("");
|
const [email, setEmail] = useState("");
|
||||||
const [password, setPassword] = useState("");
|
const [password, setPassword] = useState("");
|
||||||
|
|
||||||
const signIn = () => {};
|
const signIn = (e) => {
|
||||||
|
e.preventDefault();
|
||||||
|
};
|
||||||
return (
|
return (
|
||||||
<section className="login">
|
<section className="login">
|
||||||
<Link to="/">
|
<Link to="/">
|
||||||
@@ -33,7 +35,11 @@ function Login() {
|
|||||||
onChange={(e) => setPassword(e.target.value)}
|
onChange={(e) => setPassword(e.target.value)}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<button className="login__signInButton" onClick={signIn}>
|
<button
|
||||||
|
className="login__signInButton"
|
||||||
|
type="submit"
|
||||||
|
onClick={signIn}
|
||||||
|
>
|
||||||
Sign In
|
Sign In
|
||||||
</button>
|
</button>
|
||||||
</form>
|
</form>
|
||||||
|
|||||||
Reference in new issue
Block a user