@@ -65,7 +65,11 @@ ArrayItem.propTypes = {
65
65
fieldIndex : PropTypes . number . isRequired ,
66
66
fields : PropTypes . arrayOf ( PropTypes . object ) ,
67
67
remove : PropTypes . func . isRequired ,
68
- formOptions : PropTypes . object . isRequired ,
68
+ formOptions : PropTypes . shape ( {
69
+ renderForm : PropTypes . func . isRequired ,
70
+ } ) . isRequired ,
71
+ length : PropTypes . number ,
72
+ minItems : PropTypes . number ,
69
73
} ;
70
74
71
75
const DynamicArray = ( {
@@ -76,7 +80,6 @@ const DynamicArray = ({
76
80
defaultItem,
77
81
formOptions,
78
82
meta,
79
- reactFinalForm,
80
83
FieldArrayProvider,
81
84
minItems,
82
85
maxItems,
@@ -128,11 +131,16 @@ DynamicArray.propTypes = {
128
131
arrayValidator : PropTypes . func ,
129
132
label : PropTypes . node ,
130
133
description : PropTypes . node ,
131
- fields : PropTypes . arrayOf ( PropTypes . object ) ,
134
+ fields : PropTypes . arrayOf ( PropTypes . object ) . isRequired ,
132
135
defaultItem : PropTypes . any ,
133
136
minItems : PropTypes . number ,
134
137
maxItems : PropTypes . number ,
135
138
noItemsMessage : PropTypes . node ,
139
+ formOptions : PropTypes . shape ( {
140
+ renderForm : PropTypes . func . isRequired ,
141
+ } ) . isRequired ,
142
+ FieldArrayProvider : PropTypes . node . isRequired ,
143
+ meta : PropTypes . object . isRequired ,
136
144
} ;
137
145
138
146
DynamicArray . defaultProps = {
0 commit comments