diff --git a/src/components/Stepper/index.jsx b/src/components/Stepper/index.jsx index f5c6f985..e56d60ec 100644 --- a/src/components/Stepper/index.jsx +++ b/src/components/Stepper/index.jsx @@ -127,7 +127,6 @@ class GnoStepper extends React.PureComponent { {(submitting: boolean, validating: boolean, ...rest: any) => { diff --git a/src/components/forms/GnoForm/index.jsx b/src/components/forms/GnoForm/index.jsx index f808048f..7216730d 100644 --- a/src/components/forms/GnoForm/index.jsx +++ b/src/components/forms/GnoForm/index.jsx @@ -12,7 +12,7 @@ export type OnSubmit = ( type Props = { onSubmit: OnSubmit, children: Function, - padding: number, + padding?: number, validation?: (values: Object) => Object | Promise, initialValues?: Object, } @@ -25,7 +25,7 @@ const stylesBasedOn = (padding: number): $Shape => ({ }) const GnoForm = ({ - onSubmit, validation, initialValues, children, padding, + onSubmit, validation, initialValues, children, padding = 0, }: Props) => (