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

Commit

Permalink
Make onLoginClick mandatory
Browse files Browse the repository at this point in the history
  • Loading branch information
weeman1337 committed Dec 5, 2022
1 parent 3ba31fd commit a8d9200
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/components/structures/auth/ForgotPassword.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ enum Phase {

interface Props {
serverConfig: ValidatedServerConfig;
onLoginClick?: () => void;
onLoginClick: () => void;
onComplete: () => void;
}

Expand All @@ -86,10 +86,6 @@ interface State {
}

export default class ForgotPassword extends React.Component<Props, State> {
public static defaultProps: Partial<Props> = {
onLoginClick: () => {},
};

private reset: PasswordReset;
private fieldPassword: Field | null = null;
private fieldPasswordConfirm: Field | null = null;
Expand Down

0 comments on commit a8d9200

Please sign in to comment.