Remove unused imports

This commit is contained in:
Dane Everitt 2020-07-04 18:46:09 -07:00
parent c419d15907
commit 732594a164
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
33 changed files with 69 additions and 81 deletions

View file

@ -13,11 +13,11 @@ interface OwnProps {
type Props = OwnProps & Omit<React.InputHTMLAttributes<HTMLInputElement>, 'name'>;
const Field = forwardRef<HTMLInputElement, Props>(({ id, name, light = false, label, description, validate, className, ...props }, ref) => (
const Field = forwardRef<HTMLInputElement, Props>(({ id, name, light = false, label, description, validate, ...props }, ref) => (
<FormikField innerRef={ref} name={name} validate={validate}>
{
({ field, form: { errors, touched } }: FieldProps) => (
<React.Fragment>
<>
{label &&
<Label htmlFor={id} isLight={light}>{label}</Label>
}
@ -35,7 +35,7 @@ const Field = forwardRef<HTMLInputElement, Props>(({ id, name, light = false, la
:
description ? <p className={'input-help'}>{description}</p> : null
}
</React.Fragment>
</>
)
}
</FormikField>