From 0c0c83cc8f78f611f5a8527ecedd6ce21d1dad80 Mon Sep 17 00:00:00 2001 From: simeng-li Date: Mon, 18 Jul 2022 17:46:13 +0800 Subject: [PATCH] feat(ui): add submit input to all the sign-in & register forms (#1587) enable submit on enter by adding submit input to all the forms --- packages/ui/src/containers/CreateAccount/index.tsx | 2 ++ packages/ui/src/containers/Passwordless/EmailPasswordless.tsx | 2 ++ packages/ui/src/containers/Passwordless/PhonePasswordless.tsx | 2 ++ packages/ui/src/containers/UsernameSignin/index.tsx | 2 ++ 4 files changed, 8 insertions(+) diff --git a/packages/ui/src/containers/CreateAccount/index.tsx b/packages/ui/src/containers/CreateAccount/index.tsx index c62e37de3..41eb24c12 100644 --- a/packages/ui/src/containers/CreateAccount/index.tsx +++ b/packages/ui/src/containers/CreateAccount/index.tsx @@ -123,6 +123,8 @@ const CreateAccount = ({ className, autoFocus }: Props) => { + + ); }; diff --git a/packages/ui/src/containers/Passwordless/EmailPasswordless.tsx b/packages/ui/src/containers/Passwordless/EmailPasswordless.tsx index ddd2a2429..7285eb0b5 100644 --- a/packages/ui/src/containers/Passwordless/EmailPasswordless.tsx +++ b/packages/ui/src/containers/Passwordless/EmailPasswordless.tsx @@ -120,6 +120,8 @@ const EmailPasswordless = ({ type, autoFocus, className }: Props) => { + + { + + { + + ); };