fix: Update Brand Code input to always be disabled with consistent placeholder and styling
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user