File tree 1 file changed +3
-1
lines changed
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ export function Form({
8
8
cancelLabel,
9
9
children,
10
10
customValidation,
11
+ customActions,
11
12
initialValues,
12
13
onCancel,
13
14
onSubmit,
@@ -58,7 +59,7 @@ export function Form({
58
59
< form { ...formProps } >
59
60
< FormContext . Provider value = { formState } > { children } </ FormContext . Provider >
60
61
61
- < FormActions { ...{ submitLabel, cancelLabel, onCancel : handleCancel } } />
62
+ { customActions || < FormActions { ...{ submitLabel, cancelLabel, onCancel : handleCancel } } /> }
62
63
</ form >
63
64
) ;
64
65
}
@@ -73,6 +74,7 @@ Form.propTypes = {
73
74
cancelLabel : PropTypes . string ,
74
75
children : PropTypes . oneOfType ( [ PropTypes . element , PropTypes . arrayOf ( PropTypes . element ) ] ) ,
75
76
customValidation : PropTypes . bool ,
77
+ customActions : PropTypes . oneOfType ( [ PropTypes . element , PropTypes . arrayOf ( PropTypes . element ) ] ) ,
76
78
initialValues : PropTypes . object ,
77
79
onCancel : PropTypes . func . isRequired ,
78
80
onSubmit : PropTypes . func . isRequired ,
You can’t perform that action at this time.
0 commit comments