From 5115dc5f8e796e90046ebc79958feaebf098352f Mon Sep 17 00:00:00 2001 From: ntr Date: Mon, 28 Nov 2022 09:58:34 +1100 Subject: [PATCH] create account btn --- client/src/routes/login.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/client/src/routes/login.tsx b/client/src/routes/login.tsx index 03990e0..87742f7 100644 --- a/client/src/routes/login.tsx +++ b/client/src/routes/login.tsx @@ -14,6 +14,10 @@ const Login = ({ mode }) => { const [error, setError] = useState(''); + function gotoRegister() { + return route('/register'); + } + async function postLogin(email, password) { const [error, user] = await http.postLogin(email, password); if (error) return setError(error); @@ -92,6 +96,7 @@ const Login = ({ mode }) => { + ); };