diff --git a/apps/portal/src/app/features/seafarer/pages/SeafarerRegistrationPage.tsx b/apps/portal/src/app/features/seafarer/pages/SeafarerRegistrationPage.tsx index 0045c79b9..93b221535 100644 --- a/apps/portal/src/app/features/seafarer/pages/SeafarerRegistrationPage.tsx +++ b/apps/portal/src/app/features/seafarer/pages/SeafarerRegistrationPage.tsx @@ -86,19 +86,18 @@ const DOC_SLOTS: DocSlot[] = [ // --------------------------------------------------------------------------- function StepIndicator({ active, completed }: { active: number; completed: number[] }) { return ( - + {STEPS.map((step, i) => { const isDone = completed.includes(i); const isCurrent = active === i; return ( - {/* Circle */} {isDone ? ( ) : ( - + {i + 1} )} @@ -123,14 +124,13 @@ function StepIndicator({ active, completed }: { active: number; completed: numbe {isDone ? `${step.label} ✓` : step.label} - {/* Connector line */} {i < STEPS.length - 1 && ( )} @@ -157,8 +157,8 @@ function StepIndicator({ active, completed }: { active: number; completed: numbe function SectionHead({ title }: { title: string }) { return ( <> - {title} - + + {title} ); } @@ -242,7 +242,7 @@ function DocCard({ {(props) => ( )} @@ -327,220 +327,223 @@ export function SeafarerRegistrationPage() { const StepIcon = stepIcons[active]; return ( - - {/* Page header */} -
- New Seafarer Registration - Register a new seafarer profile — Step {active + 1} of {STEPS.length} -
+ + {/* Page header */} +
+ New Seafarer Registration + Register a new seafarer profile — Step {active + 1} of {STEPS.length} +
- {/* Step indicator */} - + {/* Step indicator */} + - {/* Card */} - - {/* Card header */} - - - - {stepLabel} + {/* Card */} + + {/* Card header */} + + + + {stepLabel} + + Step {active + 1} of {STEPS.length} - Step {active + 1} of {STEPS.length} - - {/* ── Step 1: Personal Information ───────────────────────────── */} - {active === 0 && ( - - - - setFirstName(e.currentTarget.value)} /> - setMiddleName(e.currentTarget.value)} /> - setLastName(e.currentTarget.value)} /> - - + setDob(e.currentTarget.value)} /> + setPlaceOfBirth(e.currentTarget.value)} /> + + - - - setNationalIdNumber(e.currentTarget.value)} /> - setPassportNumber(e.currentTarget.value)} /> - - setPassportExpiry(e.currentTarget.value)} style={{ maxWidth: rem(360) }} /> + + + setNationalIdNumber(e.currentTarget.value)} /> + setPassportNumber(e.currentTarget.value)} /> + setPassportExpiry(e.currentTarget.value)} /> + - }> - A unique Seafarer ID will be automatically generated upon approval of this registration. - - - )} + }> + A unique Seafarer ID will be automatically generated upon approval of this registration. + +
+ )} - {/* ── Step 2: Contact Details ─────────────────────────────────── */} - {active === 1 && ( - - - - setMobile(e.currentTarget.value)} /> - setEmail(e.currentTarget.value)} /> -