}
+ dirty={isDirty.companyInfo}
+ onSave={saveCompanyInfo}
+ >
+
+
+
+
updateProfile((current) => ({ ...current, companyInfo: { ...current.companyInfo, name: e.target.value } }))}
+ className={inputClassName}
+ placeholder="YieldVault"
+ />
+ {companyInfoErrors.name &&
{companyInfoErrors.name}
}
+
+
+
+
updateProfile((current) => ({ ...current, companyInfo: { ...current.companyInfo, registrationNumber: e.target.value } }))}
+ className={inputClassName}
+ placeholder="RC123456"
+ />
+ {companyInfoErrors.registrationNumber &&
{companyInfoErrors.registrationNumber}
}
+
+
+
+
updateProfile((current) => ({ ...current, companyInfo: { ...current.companyInfo, industry: e.target.value } }))}
+ className={inputClassName}
+ placeholder="Logistics"
+ />
+ {companyInfoErrors.industry &&
{companyInfoErrors.industry}
}
+
+
}
+ dirty={isDirty.contactDetails}
+ onSave={saveContactDetails}
+ >
+
+
+
+
updateProfile((current) => ({ ...current, contactDetails: { ...current.contactDetails, email: e.target.value } }))}
+ className={inputClassName}
+ placeholder="hello@company.com"
+ />
+ {contactErrors.email &&
{contactErrors.email}
}
+
+
+
+
updateProfile((current) => ({ ...current, contactDetails: { ...current.contactDetails, phone: e.target.value } }))}
+ className={inputClassName}
+ placeholder="+234 800 123 4567"
+ />
+ {contactErrors.phone &&
{contactErrors.phone}
}
+
+
+
+
updateProfile((current) => ({ ...current, contactDetails: { ...current.contactDetails, website: e.target.value } }))}
+ className={inputClassName}
+ placeholder="https://company.com"
+ />
+ {contactErrors.website &&
{contactErrors.website}
}
+
+
}
+ dirty={isDirty.address}
+ onSave={saveAddress}
+ >
+
+
+
+
updateProfile((current) => ({ ...current, address: { ...current.address, addressLine1: e.target.value } }))}
+ className={inputClassName}
+ placeholder="42 Marina Road"
+ />
+ {addressErrors.addressLine1 &&
{addressErrors.addressLine1}
}
+
+
+
+
updateProfile((current) => ({ ...current, address: { ...current.address, city: e.target.value } }))}
+ className={inputClassName}
+ placeholder="Lagos"
+ />
+ {addressErrors.city &&
{addressErrors.city}
}
+
+
+
+ updateProfile((current) => ({ ...current, address: { ...current.address, state: e.target.value } }))}
+ className={inputClassName}
+ placeholder="Lagos State"
+ />
+
+
+
+ updateProfile((current) => ({ ...current, address: { ...current.address, postalCode: e.target.value } }))}
+ className={inputClassName}
+ placeholder="100001"
+ />
+
+
+
+
updateProfile((current) => ({ ...current, address: { ...current.address, country: e.target.value } }))}
+ className={inputClassName}
+ placeholder="Nigeria"
+ />
+ {addressErrors.country &&
{addressErrors.country}
}
+
+
}
+ dirty={isDirty.branding}
+ onSave={saveBranding}
+ >
+