fix: make career field read-only in ProfileSettingsForm for agents
This commit is contained in:
@@ -455,7 +455,7 @@ export function ProfileSettingsForm({
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Career (only for agents) */}
|
||||
{/* Career (only for agents, read-only - set during onboarding) */}
|
||||
{(session?.user as any)?.role === 'AGENT' && (
|
||||
<div>
|
||||
<label className="block text-[12px] font-medium text-[#00293D]/70 font-serif mb-2">
|
||||
@@ -464,8 +464,8 @@ export function ProfileSettingsForm({
|
||||
<input
|
||||
type="text"
|
||||
value={formData.career}
|
||||
onChange={(e) => handleChange('career', e.target.value)}
|
||||
className="w-full sm:w-1/2 h-[44px] px-4 border border-[#00293D]/20 rounded-[10px] text-[14px] font-serif text-[#00293D] focus:outline-none focus:border-[#E58625]"
|
||||
disabled
|
||||
className="w-full sm:w-1/2 h-[44px] px-4 border border-[#00293D]/20 rounded-[10px] text-[14px] font-serif text-[#00293D]/60 bg-gray-50 cursor-not-allowed"
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user