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