From 8618a96567b665fe8c86e870ab9cd95b1602d5b8 Mon Sep 17 00:00:00 2001 From: shindigira Date: Wed, 29 May 2024 09:50:24 -0700 Subject: [PATCH 1/8] content(Complete User Profile): Updated the language, commented out button --- .../AddFinancialInstitution.tsx | 8 ++++++- .../ProfileForm/CreateProfileForm/index.tsx | 21 ++++++++++++------- 2 files changed, 20 insertions(+), 9 deletions(-) diff --git a/src/pages/ProfileForm/CreateProfileForm/AddFinancialInstitution.tsx b/src/pages/ProfileForm/CreateProfileForm/AddFinancialInstitution.tsx index 03e07f733..ce12aeaad 100644 --- a/src/pages/ProfileForm/CreateProfileForm/AddFinancialInstitution.tsx +++ b/src/pages/ProfileForm/CreateProfileForm/AddFinancialInstitution.tsx @@ -9,15 +9,17 @@ interface AddFinancialInstitutionProperties { index: number; register: UseFormRegister; formErrors: FieldErrors; + isLast?: boolean; } function AddFinancialInstitution({ index, register, formErrors, + isLast, }: AddFinancialInstitutionProperties): JSX.Element { return ( -
+
Provide the name and LEI of the financial institution for which you are authorized to file. If you are authorized to file for an - additional financial institution, click “Add a financial - institution.” + additional financial institution,{' '} + email our support staff. {fields.map((field, index) => { const onRemoveThisInstitution = (): void => remove(index); + const isLast = fields.length - One === index; return (
{index !== 0 && ( @@ -142,16 +145,18 @@ function CreateProfileForm(): JSX.Element { index={index} register={register} formErrors={formErrors} + isLast={isLast} />
); })} -
+ {/* TODO: Re-enable button post-mvp */} + {/* https://github.com/cfpb/sbl-frontend/issues/596 */} + {/*
- Add a financial institution + Add an additional financial institution -
- +
*/}