This commit is contained in:
Malini 2025-11-21 14:56:56 +05:30
parent de3a72ca35
commit f78534b258

View File

@ -323,13 +323,13 @@ const validateCSVFile = (file, existingEstablishments = []) => {
} }
// Check Factory Name // Check Factory Name
if (factoryNameIndex >= 0 && !values[factoryNameIndex]) { // if (factoryNameIndex >= 0 && !values[factoryNameIndex]) {
rowErrors.push({ // rowErrors.push({
column: 'Factory Name', // column: 'Factory Name',
message: 'Factory Name is required', // message: 'Factory Name is required',
value: '' // value: ''
}); // });
} // }
// Check Email // Check Email
if (emailIndex >= 0) { if (emailIndex >= 0) {
@ -871,8 +871,8 @@ const CompanyProfile = () => {
onChange={handleFormChange('permanentFactoryCode')} onChange={handleFormChange('permanentFactoryCode')}
placeholder="Enter Factory Code" placeholder="Enter Factory Code"
width="100%" width="100%"
required // required
error={fieldErrors.permanentFactoryCode} // error={fieldErrors.permanentFactoryCode}
/> />
<TextField <TextField
label="Unique License Number" label="Unique License Number"
@ -889,8 +889,8 @@ const CompanyProfile = () => {
onChange={handleFormChange('industryCodeBusiness')} onChange={handleFormChange('industryCodeBusiness')}
placeholder="Enter Code" placeholder="Enter Code"
width="100%" width="100%"
required // required
error={fieldErrors.industryCodeBusiness} // error={fieldErrors.industryCodeBusiness}
/> />
<TextField <TextField
label="Industry Code (Current Production)" label="Industry Code (Current Production)"
@ -898,8 +898,8 @@ const CompanyProfile = () => {
onChange={handleFormChange('industryCodeProduction')} onChange={handleFormChange('industryCodeProduction')}
placeholder="Enter Code" placeholder="Enter Code"
width="100%" width="100%"
required // required
error={fieldErrors.industryCodeProduction} // error={fieldErrors.industryCodeProduction}
/> />
</div> </div>
<div className="mt-4"> <div className="mt-4">
@ -937,8 +937,8 @@ const CompanyProfile = () => {
onChange={handleFormChange('contactAddress')} onChange={handleFormChange('contactAddress')}
placeholder="Enter Address" placeholder="Enter Address"
width="100%" width="100%"
required // required
error={fieldErrors.contactAddress} // error={fieldErrors.contactAddress}
/> />
<SelectField <SelectField
label="Emirate" label="Emirate"
@ -1007,7 +1007,7 @@ const CompanyProfile = () => {
onChange={handleFormChange('contactPersonName')} onChange={handleFormChange('contactPersonName')}
placeholder="Enter Name" placeholder="Enter Name"
width="100%" width="100%"
error={fieldErrors.contactPersonName} // error={fieldErrors.contactPersonName}
/> />
<TextField <TextField
label="Contact Person Designation" label="Contact Person Designation"
@ -1024,8 +1024,8 @@ const CompanyProfile = () => {
value={form.contactMobileNumber} value={form.contactMobileNumber}
onChange={handleFormChange('contactMobileNumber')} onChange={handleFormChange('contactMobileNumber')}
width="100%" width="100%"
required // required
error={fieldErrors.contactMobileNumber} // error={fieldErrors.contactMobileNumber}
/> />
<TextField <TextField
label="Email" label="Email"