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

Commit 56ffa17

Browse files
authored
Merge pull request #5433 from matrix-org/t3chguy/socials_preamble
Auth typescripting and validation tweaks
2 parents 5f47077 + d85b5b6 commit 56ffa17

File tree

9 files changed

+924
-783
lines changed

9 files changed

+924
-783
lines changed

src/components/structures/auth/Login.js renamed to src/components/structures/auth/Login.tsx

Lines changed: 160 additions & 176 deletions
Large diffs are not rendered by default.

src/components/structures/auth/Registration.js renamed to src/components/structures/auth/Registration.tsx

Lines changed: 151 additions & 128 deletions
Large diffs are not rendered by default.

src/components/views/auth/PassphraseField.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ import zxcvbn from "zxcvbn";
2121
import SdkConfig from "../../../SdkConfig";
2222
import withValidation, {IFieldState, IValidationResult} from "../elements/Validation";
2323
import {_t, _td} from "../../../languageHandler";
24-
import Field from "../elements/Field";
24+
import Field, {IInputProps} from "../elements/Field";
2525

26-
interface IProps {
26+
interface IProps extends Omit<IInputProps, "onValidate"> {
2727
autoFocus?: boolean;
2828
id?: string;
2929
className?: string;

src/components/views/auth/PasswordLogin.js

Lines changed: 0 additions & 377 deletions
This file was deleted.

0 commit comments

Comments
 (0)