From 323c1e902936f0f3ed5353db4e012a67fa381dcd Mon Sep 17 00:00:00 2001 From: Rami Berman Date: Mon, 10 Jan 2022 11:32:14 +0200 Subject: [PATCH] Update LoginPage.tsx --- ui/src/components/LoginPage.tsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/ui/src/components/LoginPage.tsx b/ui/src/components/LoginPage.tsx index 964aac1b5..3196f7641 100644 --- a/ui/src/components/LoginPage.tsx +++ b/ui/src/components/LoginPage.tsx @@ -33,11 +33,16 @@ const LoginPage: React.FC = () => { } finally { setIsLoading(false); } - } + const handleFormOnKeyPress = (e: React.KeyboardEvent) => { + if (e.key === "Enter") { + onFormSubmit(); + } + }; - return
+ + return
{isLoading && }
Login