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 <GnoForm
onSubmit={this.handleSubmit} onSubmit={this.handleSubmit}
initialValues={values} initialValues={values}
padding={15}
validation={this.validate} validation={this.validate}
> >
{(submitting: boolean, validating: boolean, ...rest: any) => { {(submitting: boolean, validating: boolean, ...rest: any) => {

View File

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