Fix sign-in instead link (#9820)

This commit is contained in:
Michael Weimann 2022-12-23 13:36:09 +01:00 committed by GitHub
parent fe0273b1a6
commit a1bc4b8e6b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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>