feat(client): ts-migrate multiple files (#43262)

* feat(client): ts-migrate rename files

* feat(client): ts-migrate client/src/templates/Introduction/*

* feat(client): ts-migrate client/src/components/formHelpers/form*

* fix: import

* Update client/src/components/formHelpers/form-validators.tsx

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>

* Update client/src/components/formHelpers/form-fields.tsx

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>

* Update client/src/components/formHelpers/form-fields.tsx

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>

* fix: types in client/src/components/formHelpers/index.tsx

* fix: types in client/src/templates/Introduction/super-block-intro.tsx

* fix: types in client/src/components/formHelpers/*

* fix: signInLoading and value types

* Update client/src/templates/Introduction/super-block-intro.tsx

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>

* Update client/src/components/formHelpers/index.tsx

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>

* Update client/src/components/formHelpers/index.tsx

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>

* Update client/src/components/formHelpers/index.tsx

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>

* chore(deps): update dependency rollup to v2.58.1

* fix: rename variables and fix imports for ts-migrate

* fix: remove `Type` suffix from the type definition.

* Update client/src/components/formHelpers/form.tsx

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
Co-authored-by: Renovate Bot <bot@renovateapp.com>
This commit is contained in:
Vishwasa Navada K
2021-10-25 23:15:36 +05:30
committed by GitHub
parent 001aa3ea9e
commit 9abc5f66ba
13 changed files with 254 additions and 215 deletions
@@ -8,7 +8,7 @@ import {
frontEndProject,
pythonProject
} from '../../../../utils/challenge-types';
import { Form } from '../../../components/formHelpers';
import { Form, ValidatedValues } from '../../../components/formHelpers';
interface SubmitProps {
showCompletionModal: boolean;
@@ -21,12 +21,6 @@ interface FormProps extends WithTranslation {
updateSolutionForm: (arg0: Record<string, unknown>) => void;
}
interface ValidatedValues {
errors: string[];
invalidValues: string[];
values: Record<string, unknown>;
}
export class SolutionForm extends Component<FormProps> {
constructor(props: FormProps) {
super(props);