Fix sign-in instead link (#9820)
This commit is contained in:
parent
fe0273b1a6
commit
a1bc4b8e6b
1 changed files with 5 additions and 2 deletions
|
@ -22,7 +22,7 @@ import EmailField from "../../../views/auth/EmailField";
|
||||||
import { ErrorMessage } from "../../ErrorMessage";
|
import { ErrorMessage } from "../../ErrorMessage";
|
||||||
import Spinner from "../../../views/elements/Spinner";
|
import Spinner from "../../../views/elements/Spinner";
|
||||||
import Field from "../../../views/elements/Field";
|
import Field from "../../../views/elements/Field";
|
||||||
import AccessibleButton from "../../../views/elements/AccessibleButton";
|
import AccessibleButton, { ButtonEvent } from "../../../views/elements/AccessibleButton";
|
||||||
|
|
||||||
interface EnterEmailProps {
|
interface EnterEmailProps {
|
||||||
email: string;
|
email: string;
|
||||||
|
@ -94,7 +94,10 @@ export const EnterEmail: React.FC<EnterEmailProps> = ({
|
||||||
className="mx_AuthBody_sign-in-instead-button"
|
className="mx_AuthBody_sign-in-instead-button"
|
||||||
element="button"
|
element="button"
|
||||||
kind="link"
|
kind="link"
|
||||||
onClick={onLoginClick}
|
onClick={(e: ButtonEvent) => {
|
||||||
|
e.preventDefault();
|
||||||
|
onLoginClick();
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
{_t("Sign in instead")}
|
{_t("Sign in instead")}
|
||||||
</AccessibleButton>
|
</AccessibleButton>
|
||||||
|
|
Loading…
Reference in a new issue