From 8796470c6c9d43cb573c23221540d9aac6407e85 Mon Sep 17 00:00:00 2001 From: crupest Date: Thu, 1 Jul 2021 20:12:39 +0800 Subject: ... --- FrontEnd/src/views/login/index.tsx | 29 +++++++++++++++++++++-------- 1 file changed, 21 insertions(+), 8 deletions(-) (limited to 'FrontEnd/src/views/login/index.tsx') diff --git a/FrontEnd/src/views/login/index.tsx b/FrontEnd/src/views/login/index.tsx index 782acdaa..ed696437 100644 --- a/FrontEnd/src/views/login/index.tsx +++ b/FrontEnd/src/views/login/index.tsx @@ -79,11 +79,14 @@ const LoginPage: React.FC = (_) => { return (
-

{t("welcome")}

-
- +

{t("welcome")}

+
+ { setUsername(e.target.value); @@ -92,9 +95,15 @@ const LoginPage: React.FC = (_) => { value={username} /> {usernameDirty && username === "" && ( -
{t("login.emptyUsername")}
+
+ {t("login.emptyUsername")} +
)} - +
+
+ { onKeyDown={onEnterPressInPassword} /> {passwordDirty && password === "" && ( -
{t("login.emptyPassword")}
+
+ {t("login.emptyPassword")} +
)}
-
+
{ setRememberMe(e.currentTarget.checked); }} /> - +
{error ?

{t(error)}

: null}
-- cgit v1.2.3