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">
|
<Form.Item label="Brand Code" name="brand_code">
|
||||||
<Input
|
<Input
|
||||||
placeholder={isEdit ? 'Brand Code Auto Fill' : 'Brand Code'}
|
placeholder={'Auto Fill Brand Code'}
|
||||||
disabled={isEdit}
|
disabled={true}
|
||||||
style={{
|
style={{
|
||||||
backgroundColor: isEdit ? '#f5f5f5' : 'white',
|
backgroundColor: '#f5f5f5',
|
||||||
cursor: isEdit ? 'not-allowed' : 'text'
|
cursor: 'not-allowed'
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
|
|||||||
Reference in New Issue
Block a user