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
|
<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) => {
|
||||||
|
|
|
@ -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}
|
||||||
|
|
Loading…
Reference in New Issue