1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-11-15 01:34:57 +01:00
This commit is contained in:
Matthias Kretschmann 2020-10-06 23:26:20 +02:00
parent ad25a0591a
commit baa61b3481
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -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<any>)
return (
<InputGroup>