@@ -41,7 +41,7 @@ const MESSAGE_PUT_ERROR =
41
41
* @param {object } props Valid form properties
42
42
* @param {object } props.unit Valid unit object
43
43
* @param {boolean } props.isEditForm Flag wether form is on edit mode
44
- * @param {boolean } props.isPosting Flag whether form is posting data
44
+ * @param {boolean } props.posting Flag whether form is posting data
45
45
* @param {Function } props.onCancel Form cancel callback
46
46
* @returns {object } UnitForm component
47
47
* @author lally elias <lallyelias87@gmail.com>
@@ -55,12 +55,12 @@ const MESSAGE_PUT_ERROR =
55
55
* <UnitForm
56
56
* unit={unit}
57
57
* isEditForm={isEditForm}
58
- * isPosting={isPosting }
58
+ * posting={posting }
59
59
* onCancel={this.handleCloseUnitForm}
60
60
* />
61
61
*
62
62
*/
63
- const UnitForm = ( { unit, isEditForm, isPosting , onCancel } ) => {
63
+ const UnitForm = ( { unit, isEditForm, posting , onCancel } ) => {
64
64
// form finish(submit) handler
65
65
const onFinish = ( values ) => {
66
66
if ( isEditForm ) {
@@ -153,7 +153,7 @@ const UnitForm = ({ unit, isEditForm, isPosting, onCancel }) => {
153
153
style = { { marginLeft : 8 } }
154
154
type = "primary"
155
155
htmlType = "submit"
156
- loading = { isPosting }
156
+ loading = { posting }
157
157
>
158
158
Save
159
159
</ Button >
@@ -181,7 +181,7 @@ UnitForm.propTypes = {
181
181
} ) ,
182
182
} ) ,
183
183
isEditForm : PropTypes . bool . isRequired ,
184
- isPosting : PropTypes . bool . isRequired ,
184
+ posting : PropTypes . bool . isRequired ,
185
185
onCancel : PropTypes . func . isRequired ,
186
186
} ;
187
187
0 commit comments