From f0cde75151757b9eeefce18f28764910260447ec Mon Sep 17 00:00:00 2001 From: apanizo Date: Tue, 26 Jun 2018 13:00:31 +0200 Subject: [PATCH] WA-232 Fix final-form types --- src/components/forms/GnoForm/index.jsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/components/forms/GnoForm/index.jsx b/src/components/forms/GnoForm/index.jsx index 7dc29a35..8e42b612 100644 --- a/src/components/forms/GnoForm/index.jsx +++ b/src/components/forms/GnoForm/index.jsx @@ -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 | void, + onSubmit: ( + values: Object, + form: FormApi, + callback: ?(errors: ?Object) => ?Object + ) => ?Object | Promise | void, children: Function, padding: number, validation?: (values: Object) => Object | Promise,