mirror of
https://github.com/status-im/safe-react.git
synced 2025-01-11 18:44:07 +00:00
WA-232 Fix final-form types
This commit is contained in:
parent
b2a20f2147
commit
f0cde75151
@ -1,10 +1,14 @@
|
||||
// @flow
|
||||
import * as React from 'react'
|
||||
import { type FormApi } from 'final-form'
|
||||
import { Form } from 'react-final-form'
|
||||
import type { FormApi } from 'react-final-form'
|
||||
|
||||
type Props = {
|
||||
onSubmit: (values: Object, form: FormApi, callback: ?(errors: ?Object) => void) => ?Object | Promise<?Object> | void,
|
||||
onSubmit: (
|
||||
values: Object,
|
||||
form: FormApi,
|
||||
callback: ?(errors: ?Object) => ?Object
|
||||
) => ?Object | Promise<?Object> | void,
|
||||
children: Function,
|
||||
padding: number,
|
||||
validation?: (values: Object) => Object | Promise<Object>,
|
||||
|
Loading…
x
Reference in New Issue
Block a user