From baa61b348162458825bb6ee3ab85d50f70d42975 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Tue, 6 Oct 2020 23:26:20 +0200 Subject: [PATCH] lazy fix --- src/components/molecules/FormFields/FilesInput/Input.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/molecules/FormFields/FilesInput/Input.tsx b/src/components/molecules/FormFields/FilesInput/Input.tsx index 59456a23a..c90073fac 100644 --- a/src/components/molecules/FormFields/FilesInput/Input.tsx +++ b/src/components/molecules/FormFields/FilesInput/Input.tsx @@ -1,9 +1,8 @@ import React, { ReactElement } from 'react' import isUrl from 'is-url-superb' import Button from '../../../atoms/Button' -import { useField } from 'formik' +import { FieldInputProps, useField } from 'formik' import Loader from '../../../atoms/Loader' -import { InputProps } from '../../../atoms/Input' import styles from './Input.module.css' import InputGroup from '../../../atoms/Input/InputGroup' @@ -15,7 +14,7 @@ export default function FileInput({ handleButtonClick(e: React.SyntheticEvent, data: string): void isLoading: boolean }): ReactElement { - const [field, meta] = useField(props as InputProps) + const [field, meta] = useField(props as FieldInputProps) return (