mirror of
https://github.com/logto-io/logto.git
synced 2025-02-17 22:04:19 -05:00
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
This commit is contained in:
parent
c07833f999
commit
0c0c83cc8f
4 changed files with 8 additions and 0 deletions
|
@ -123,6 +123,8 @@ const CreateAccount = ({ className, autoFocus }: Props) => {
|
|||
<TermsOfUse className={styles.terms} />
|
||||
|
||||
<Button onClick={async () => onSubmitHandler()}>{t('action.create')}</Button>
|
||||
|
||||
<input hidden type="submit" />
|
||||
</form>
|
||||
);
|
||||
};
|
||||
|
|
|
@ -120,6 +120,8 @@ const EmailPasswordless = ({ type, autoFocus, className }: Props) => {
|
|||
<TermsOfUse className={styles.terms} />
|
||||
|
||||
<Button onClick={async () => onSubmitHandler()}>{t('action.continue')}</Button>
|
||||
|
||||
<input hidden type="submit" />
|
||||
</form>
|
||||
<PasswordlessConfirmModal
|
||||
isOpen={showPasswordlessConfirmModal}
|
||||
|
|
|
@ -134,6 +134,8 @@ const PhonePasswordless = ({ type, autoFocus, className }: Props) => {
|
|||
<TermsOfUse className={styles.terms} />
|
||||
|
||||
<Button onClick={async () => onSubmitHandler()}>{t('action.continue')}</Button>
|
||||
|
||||
<input hidden type="submit" />
|
||||
</form>
|
||||
<PasswordlessConfirmModal
|
||||
isOpen={showPasswordlessConfirmModal}
|
||||
|
|
|
@ -115,6 +115,8 @@ const UsernameSignin = ({ className, autoFocus }: Props) => {
|
|||
<TermsOfUse className={styles.terms} />
|
||||
|
||||
<Button onClick={async () => onSubmitHandler()}>{t('action.sign_in')}</Button>
|
||||
|
||||
<input hidden type="submit" />
|
||||
</form>
|
||||
);
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue