From a8d9200dc234eb701d38641d7389076fd3416fa7 Mon Sep 17 00:00:00 2001 From: Michael Weimann Date: Mon, 5 Dec 2022 10:07:04 +0100 Subject: [PATCH] Make onLoginClick mandatory --- src/components/structures/auth/ForgotPassword.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/components/structures/auth/ForgotPassword.tsx b/src/components/structures/auth/ForgotPassword.tsx index 95382a8a84a..4698b99ae81 100644 --- a/src/components/structures/auth/ForgotPassword.tsx +++ b/src/components/structures/auth/ForgotPassword.tsx @@ -63,7 +63,7 @@ enum Phase { interface Props { serverConfig: ValidatedServerConfig; - onLoginClick?: () => void; + onLoginClick: () => void; onComplete: () => void; } @@ -86,10 +86,6 @@ interface State { } export default class ForgotPassword extends React.Component { - public static defaultProps: Partial = { - onLoginClick: () => {}, - }; - private reset: PasswordReset; private fieldPassword: Field | null = null; private fieldPasswordConfirm: Field | null = null;