Removing default padding on GnoForm
This commit is contained in:
parent
cf91879c31
commit
872658d918
|
@ -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) => {
|
||||
|
|
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue