diff --git a/src/app/(agent)/agent/edit/components/FormInput.tsx b/src/app/(agent)/agent/edit/components/FormInput.tsx index aac1fdf..b4bcf64 100644 --- a/src/app/(agent)/agent/edit/components/FormInput.tsx +++ b/src/app/(agent)/agent/edit/components/FormInput.tsx @@ -21,7 +21,7 @@ export function FormInput({ label, value, onChange, placeholder, type = 'text', onChange={(e) => onChange(e.target.value)} placeholder={placeholder} disabled={disabled} - className="w-full px-4 py-3 border border-[#00293D]/20 rounded-[10px] text-[14px] font-serif text-[#00293D] placeholder:text-[#00293D]/40 focus:outline-none focus:border-[#E58625] disabled:bg-gray-50 disabled:text-[#00293D]/50" + className="w-full h-[40px] px-4 border border-[#00293D]/20 rounded-[15px] text-[14px] font-serif text-[#00293D] placeholder:text-[#00293D]/40 focus:outline-none focus:border-[#E58625] disabled:bg-gray-50 disabled:text-[#00293D]/50" /> ); diff --git a/src/app/(agent)/agent/edit/page.tsx b/src/app/(agent)/agent/edit/page.tsx index e045e67..e356d7c 100644 --- a/src/app/(agent)/agent/edit/page.tsx +++ b/src/app/(agent)/agent/edit/page.tsx @@ -109,6 +109,7 @@ export default function EditProfilePage() { const router = useRouter(); const [formData, setFormData] = useState(initialFormData); const scrollContainerRef = useRef(null); + const [stateInput, setStateInput] = useState(''); const handleCancel = () => { router.push('/agent/dashboard'); @@ -124,6 +125,21 @@ export default function EditProfilePage() { setFormData((prev) => ({ ...prev, [field]: value })); }; + const handleAddLicensedArea = (value: string) => { + const trimmedValue = value.trim(); + if (trimmedValue && !formData.licensedAreas.includes(trimmedValue)) { + updateField('licensedAreas', [...formData.licensedAreas, trimmedValue]); + } + setStateInput(''); + }; + + const handleStateInputKeyDown = (e: React.KeyboardEvent) => { + if (e.key === 'Enter' || e.key === ',') { + e.preventDefault(); + handleAddLicensedArea(stateInput); + } + }; + return (
{/* Left Sidebar - Quick Links */} @@ -134,7 +150,7 @@ export default function EditProfilePage() { {/* Main Content - Scrollable */}
{/* Basic Information */} -
+
{/* Contact Information */} -
+
{/* Professional Types */} -
+
{/* Upload Documents */} -
+
console.log('Files selected:', files)} /> @@ -235,60 +251,61 @@ export default function EditProfilePage() {
{/* Licensing & Areas */} -
+
- updateField('state', value)} - options={[ - { value: 'Colorado', label: 'Colorado' }, - { value: 'Texas', label: 'Texas' }, - { value: 'California', label: 'California' }, - ]} - /> -
-
{/* Biography */} -
+
{/* Expertise */} -
+
{/* Years In Business */} -
+
{/* Areas in expertise & Years */} -
+
{/* Contracts Closed */} -
+
{/* Price Point */} -
+
{/* Specialization */} -
+
{/* Client Localization */} @@ -551,7 +568,7 @@ export default function EditProfilePage() {
{/* Special Interests & Hobbies */} -
+
{/* Certifications */} -
+

Certifications / Designations

@@ -577,7 +594,7 @@ export default function EditProfilePage() {
{/* Availability */} -
+