Skip to content

Commit

Permalink
[GCOM-1234]: Removed commented props and unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
mikekeehnen committed Nov 27, 2023
1 parent 2afbe26 commit 06e8bea
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ export function PasswordField({ label }: PasswordFieldProps) {
assertFormGqlOperation(methods)
const { control, formState, required, error } = methods

// eslint-disable-next-line @typescript-eslint/no-unused-vars
const [_, authenticationError] = graphqlErrorByCategory({
const [, authenticationError] = graphqlErrorByCategory({
category: 'graphql-authentication',
error,
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ export function ValidatePasswordFields() {
const methods = useFormContext()
assertFormGqlOperation(methods)
const { control, formState, required, error } = methods
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const [_, inputError] = graphqlErrorByCategory({
const [, inputError] = graphqlErrorByCategory({
category: 'graphql-input',
error,
})
Expand Down
6 changes: 0 additions & 6 deletions packages/react-hook-form/src/useFormAutoSubmit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,6 @@ export type FormAutoSubmitProps<
TFieldValues extends FieldValues = FieldValues,
TFieldNames extends readonly FieldPath<TFieldValues>[] = readonly FieldPath<TFieldValues>[],
> = {
// eslint-disable-next-line react/no-unused-prop-types
// control: Control<TFieldValues>
/** Autosubmit only when these field names update */
// eslint-disable-next-line react/no-unused-prop-types
name?: readonly [...TFieldNames]
Expand All @@ -114,10 +112,6 @@ export type FormAutoSubmitProps<
// eslint-disable-next-line react/no-unused-prop-types
exact?: boolean

/** SubmitHandler */
// eslint-disable-next-line react/no-unused-prop-types
// submit: ReturnType<UseFormReturn<TFieldValues>['handleSubmit']>

/**
* When a current submission is already in flight, should we wait for it to finish before
* submitting again?
Expand Down

0 comments on commit 06e8bea

Please sign in to comment.