Removing default padding on GnoForm

This commit is contained in:
apanizo 2018-09-07 17:25:59 +02:00
parent cf91879c31
commit 872658d918
2 changed files with 2 additions and 3 deletions

View File

@ -127,7 +127,6 @@ class GnoStepper extends React.PureComponent<Props, State> {
<GnoForm
onSubmit={this.handleSubmit}
initialValues={values}
padding={15}
validation={this.validate}
>
{(submitting: boolean, validating: boolean, ...rest: any) => {

View File

@ -12,7 +12,7 @@ export type OnSubmit = (
type Props = {
onSubmit: OnSubmit,
children: Function,
padding: number,
padding?: number,
validation?: (values: Object) => Object | Promise<Object>,
initialValues?: Object,
}
@ -25,7 +25,7 @@ const stylesBasedOn = (padding: number): $Shape<CSSStyleDeclaration> => ({
})
const GnoForm = ({
onSubmit, validation, initialValues, children, padding,
onSubmit, validation, initialValues, children, padding = 0,
}: Props) => (
<Form
validate={validation}