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"> <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>