Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit a8d9200

Browse files
committed
Make onLoginClick mandatory
1 parent 3ba31fd commit a8d9200

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/components/structures/auth/ForgotPassword.tsx

+1-5
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ enum Phase {
6363

6464
interface Props {
6565
serverConfig: ValidatedServerConfig;
66-
onLoginClick?: () => void;
66+
onLoginClick: () => void;
6767
onComplete: () => void;
6868
}
6969

@@ -86,10 +86,6 @@ interface State {
8686
}
8787

8888
export default class ForgotPassword extends React.Component<Props, State> {
89-
public static defaultProps: Partial<Props> = {
90-
onLoginClick: () => {},
91-
};
92-
9389
private reset: PasswordReset;
9490
private fieldPassword: Field | null = null;
9591
private fieldPasswordConfirm: Field | null = null;

0 commit comments

Comments
 (0)