diff --git a/src/pages/contact/component/DetailContact.jsx b/src/pages/contact/component/DetailContact.jsx index d682381..ea73910 100644 --- a/src/pages/contact/component/DetailContact.jsx +++ b/src/pages/contact/component/DetailContact.jsx @@ -205,27 +205,36 @@ const DetailContact = memo(function DetailContact(props) { ]} >
-
-
- Status -
-
-
- -
+ {/* Status field only show in add mode*/} + {props.actionMode === 'add' && ( + <>
- {formData.is_active ? 'Active' : 'Inactive'} +
+ Status +
+
+
+ +
+
+ {formData.is_active ? 'Active' : 'Inactive'} +
+
-
-
- + + + )}
Name