From 952e45bdb159fbed71042b4bcb4378091b66c76c Mon Sep 17 00:00:00 2001 From: Leon Xu Date: Sat, 7 May 2022 12:34:00 -0700 Subject: [PATCH] doc: add submit type to signInButton --- src/Auth/Login.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/Auth/Login.js b/src/Auth/Login.js index 2a2844b..20b2e58 100644 --- a/src/Auth/Login.js +++ b/src/Auth/Login.js @@ -6,7 +6,9 @@ function Login() { const [email, setEmail] = useState(""); const [password, setPassword] = useState(""); - const signIn = () => {}; + const signIn = (e) => { + e.preventDefault(); + }; return (
@@ -33,7 +35,11 @@ function Login() { onChange={(e) => setPassword(e.target.value)} /> -