fix: Update Brand Code input to always be disabled with consistent placeholder and styling

This commit is contained in:
2025-11-18 11:51:28 +07:00
parent ecf59fa9c6
commit 8405568e85

View File

@@ -28,11 +28,11 @@ const BrandForm = ({ form, formData, onValuesChange, isEdit = false }) => {
<Form.Item label="Brand Code" name="brand_code">
<Input
placeholder={isEdit ? 'Brand Code Auto Fill' : 'Brand Code'}
disabled={isEdit}
placeholder={'Auto Fill Brand Code'}
disabled={true}
style={{
backgroundColor: isEdit ? '#f5f5f5' : 'white',
cursor: isEdit ? 'not-allowed' : 'text'
backgroundColor: '#f5f5f5',
cursor: 'not-allowed'
}}
/>
</Form.Item>