diff --git a/admin/src/pages/SignupPage.tsx b/admin/src/pages/SignupPage.tsx index 1032577..57e2f17 100644 --- a/admin/src/pages/SignupPage.tsx +++ b/admin/src/pages/SignupPage.tsx @@ -21,9 +21,9 @@ const FIELDS = [ ['addressLine', 'Adresse', { autoComplete: 'street-address', maxLength: 200 }], ['postalCode', 'Code postal', { autoComplete: 'postal-code', inputMode: 'numeric', maxLength: 5 }], ['city', 'Ville', { autoComplete: 'address-level2', maxLength: 120 }], - ['contactName', 'Prénom et nom du dirigeant', { autoComplete: 'name', maxLength: 120 }], + ['contactName', 'Prénom et nom', { autoComplete: 'name', maxLength: 120 }], ['contactPhone', 'Téléphone', { autoComplete: 'tel', type: 'tel' }], - ['contactEmail', 'E-mail (votre identifiant)', { autoComplete: 'email', type: 'email' }], + ['contactEmail', 'E-mail (votre identifiant de connexion)', { autoComplete: 'email', type: 'email' }], ] as const; type Values = Record<(typeof FIELDS)[number][0] | 'password', string>; @@ -71,85 +71,133 @@ export function SignupPage() { } const current = catalog.find((c) => c.plan === plan); + const shown = catalog.length ? catalog : PLANS.map((p) => ({ plan: p, name: PLAN_LABEL[p], tagline: '', priceCents: { MONTH: 0, YEAR: 0 }, modules: [], limits: { maxStaff: null } })); + const field = (k: (typeof FIELDS)[number][0]) => { + const [, label, props] = FIELDS.find(([key]) => key === k)!; + return ( +