From a0ed8a658b024fed469033eb927a052f6c03735e Mon Sep 17 00:00:00 2001 From: Ephraim Atta-Duncan Date: Sat, 21 Sep 2024 14:08:21 +0000 Subject: [PATCH] chore: select signer on field click --- packages/lib/translations/de/common.po | 34 +++++++++---------- packages/lib/translations/en/common.po | 34 +++++++++---------- packages/lib/translations/fr/common.po | 34 +++++++++---------- .../primitives/document-flow/add-fields.tsx | 11 +++--- 4 files changed, 56 insertions(+), 57 deletions(-) diff --git a/packages/lib/translations/de/common.po b/packages/lib/translations/de/common.po index 6ec315331..f645594cd 100644 --- a/packages/lib/translations/de/common.po +++ b/packages/lib/translations/de/common.po @@ -115,7 +115,7 @@ msgstr "Admin" msgid "Advanced Options" msgstr "Erweiterte Optionen" -#: packages/ui/primitives/document-flow/add-fields.tsx:527 +#: packages/ui/primitives/document-flow/add-fields.tsx:529 #: packages/ui/primitives/template-flow/add-template-fields.tsx:402 msgid "Advanced settings" msgstr "Erweiterte Einstellungen" @@ -178,7 +178,7 @@ msgstr "CC'd" msgid "Character Limit" msgstr "Zeichenbeschränkung" -#: packages/ui/primitives/document-flow/add-fields.tsx:950 +#: packages/ui/primitives/document-flow/add-fields.tsx:949 #: packages/ui/primitives/template-flow/add-template-fields.tsx:788 msgid "Checkbox" msgstr "Checkbox" @@ -207,7 +207,7 @@ msgstr "Schließen" msgid "Configure Direct Recipient" msgstr "Direkten Empfänger konfigurieren" -#: packages/ui/primitives/document-flow/add-fields.tsx:528 +#: packages/ui/primitives/document-flow/add-fields.tsx:530 #: packages/ui/primitives/template-flow/add-template-fields.tsx:403 msgid "Configure the {0} field" msgstr "Konfigurieren Sie das Feld {0}" @@ -224,7 +224,7 @@ msgstr "In die Zwischenablage kopiert" msgid "Custom Text" msgstr "Benutzerdefinierter Text" -#: packages/ui/primitives/document-flow/add-fields.tsx:846 +#: packages/ui/primitives/document-flow/add-fields.tsx:845 #: packages/ui/primitives/template-flow/add-template-fields.tsx:684 msgid "Date" msgstr "Datum" @@ -256,7 +256,7 @@ msgstr "Herunterladen" msgid "Drag & drop your PDF here." msgstr "Ziehen Sie Ihr PDF hierher." -#: packages/ui/primitives/document-flow/add-fields.tsx:976 +#: packages/ui/primitives/document-flow/add-fields.tsx:975 #: packages/ui/primitives/template-flow/add-template-fields.tsx:814 msgid "Dropdown" msgstr "Dropdown" @@ -265,7 +265,7 @@ msgstr "Dropdown" msgid "Dropdown options" msgstr "Dropdown-Optionen" -#: packages/ui/primitives/document-flow/add-fields.tsx:794 +#: packages/ui/primitives/document-flow/add-fields.tsx:793 #: packages/ui/primitives/document-flow/add-signature.tsx:272 #: packages/ui/primitives/document-flow/add-signers.tsx:500 #: packages/ui/primitives/template-flow/add-template-fields.tsx:632 @@ -384,7 +384,7 @@ msgstr "Nachricht <0>(Optional)" msgid "Min" msgstr "Min" -#: packages/ui/primitives/document-flow/add-fields.tsx:820 +#: packages/ui/primitives/document-flow/add-fields.tsx:819 #: packages/ui/primitives/document-flow/add-signature.tsx:298 #: packages/ui/primitives/document-flow/add-signers.tsx:535 #: packages/ui/primitives/document-flow/add-signers.tsx:541 @@ -406,12 +406,12 @@ msgstr "Muss unterzeichnen" msgid "Needs to view" msgstr "Muss sehen" -#: packages/ui/primitives/document-flow/add-fields.tsx:631 +#: packages/ui/primitives/document-flow/add-fields.tsx:630 #: packages/ui/primitives/template-flow/add-template-fields.tsx:497 msgid "No recipient matching this description was found." msgstr "Kein passender Empfänger mit dieser Beschreibung gefunden." -#: packages/ui/primitives/document-flow/add-fields.tsx:647 +#: packages/ui/primitives/document-flow/add-fields.tsx:646 #: packages/ui/primitives/template-flow/add-template-fields.tsx:513 msgid "No recipients with this role" msgstr "Keine Empfänger mit dieser Rolle" @@ -436,7 +436,7 @@ msgstr "Kein Unterschriftsfeld gefunden" msgid "No value found." msgstr "Kein Wert gefunden." -#: packages/ui/primitives/document-flow/add-fields.tsx:898 +#: packages/ui/primitives/document-flow/add-fields.tsx:897 #: packages/ui/primitives/template-flow/add-template-fields.tsx:736 msgid "Number" msgstr "Nummer" @@ -471,7 +471,7 @@ msgstr "Wählen Sie eine Zahl" msgid "Placeholder" msgstr "Platzhalter" -#: packages/ui/primitives/document-flow/add-fields.tsx:924 +#: packages/ui/primitives/document-flow/add-fields.tsx:923 #: packages/ui/primitives/template-flow/add-template-fields.tsx:762 msgid "Radio" msgstr "Radio" @@ -507,7 +507,7 @@ msgstr "Rot" msgid "Redirect URL" msgstr "Weiterleitungs-URL" -#: packages/ui/primitives/document-flow/add-fields.tsx:1027 +#: packages/ui/primitives/document-flow/add-fields.tsx:1026 msgid "Remove" msgstr "Entfernen" @@ -578,7 +578,7 @@ msgstr "Erweiterte Einstellungen anzeigen" msgid "Sign" msgstr "Unterschreiben" -#: packages/ui/primitives/document-flow/add-fields.tsx:742 +#: packages/ui/primitives/document-flow/add-fields.tsx:741 #: packages/ui/primitives/document-flow/add-signature.tsx:323 #: packages/ui/primitives/document-flow/field-icon.tsx:52 #: packages/ui/primitives/template-flow/add-template-fields.tsx:580 @@ -626,7 +626,7 @@ msgstr "Einreichen" msgid "Template title" msgstr "Vorlagentitel" -#: packages/ui/primitives/document-flow/add-fields.tsx:872 +#: packages/ui/primitives/document-flow/add-fields.tsx:871 #: packages/ui/primitives/template-flow/add-template-fields.tsx:710 msgid "Text" msgstr "Text" @@ -687,7 +687,7 @@ msgstr "Der Name des Unterzeichners" msgid "This can be overriden by setting the authentication requirements directly on each recipient in the next step." msgstr "Dies kann überschrieben werden, indem die Authentifizierungsanforderungen im nächsten Schritt direkt für jeden Empfänger festgelegt werden." -#: packages/ui/primitives/document-flow/add-fields.tsx:703 +#: packages/ui/primitives/document-flow/add-fields.tsx:702 msgid "This document has already been sent to this recipient. You can no longer edit this recipient." msgstr "Dieses Dokument wurde bereits an diesen Empfänger gesendet. Sie können diesen Empfänger nicht mehr bearbeiten." @@ -699,7 +699,7 @@ msgstr "Dieses Dokument ist durch ein Passwort geschützt. Bitte geben Sie das P msgid "This field cannot be modified or deleted. When you share this template's direct link or add it to your public profile, anyone who accesses it can input their name and email, and fill in the fields assigned to them." msgstr "Dieses Feld kann nicht geändert oder gelöscht werden. Wenn Sie den direkten Link dieser Vorlage teilen oder zu Ihrem öffentlichen Profil hinzufügen, kann jeder, der darauf zugreift, seinen Namen und seine E-Mail-Adresse eingeben und die ihm zugewiesenen Felder ausfüllen." -#: packages/ui/primitives/document-flow/add-fields.tsx:1007 +#: packages/ui/primitives/document-flow/add-fields.tsx:1006 msgid "This recipient can no longer be modified as they have signed a field, or completed the document." msgstr "" @@ -724,7 +724,7 @@ msgstr "Zeitzone" msgid "Title" msgstr "Titel" -#: packages/ui/primitives/document-flow/add-fields.tsx:990 +#: packages/ui/primitives/document-flow/add-fields.tsx:989 #: packages/ui/primitives/template-flow/add-template-fields.tsx:828 msgid "To proceed further, please set at least one value for the {0} field." msgstr "Um fortzufahren, legen Sie bitte mindestens einen Wert für das Feld {0} fest." diff --git a/packages/lib/translations/en/common.po b/packages/lib/translations/en/common.po index 074064d4c..70d33ba80 100644 --- a/packages/lib/translations/en/common.po +++ b/packages/lib/translations/en/common.po @@ -110,7 +110,7 @@ msgstr "Admin" msgid "Advanced Options" msgstr "Advanced Options" -#: packages/ui/primitives/document-flow/add-fields.tsx:527 +#: packages/ui/primitives/document-flow/add-fields.tsx:529 #: packages/ui/primitives/template-flow/add-template-fields.tsx:402 msgid "Advanced settings" msgstr "Advanced settings" @@ -173,7 +173,7 @@ msgstr "CC'd" msgid "Character Limit" msgstr "Character Limit" -#: packages/ui/primitives/document-flow/add-fields.tsx:950 +#: packages/ui/primitives/document-flow/add-fields.tsx:949 #: packages/ui/primitives/template-flow/add-template-fields.tsx:788 msgid "Checkbox" msgstr "Checkbox" @@ -202,7 +202,7 @@ msgstr "Close" msgid "Configure Direct Recipient" msgstr "Configure Direct Recipient" -#: packages/ui/primitives/document-flow/add-fields.tsx:528 +#: packages/ui/primitives/document-flow/add-fields.tsx:530 #: packages/ui/primitives/template-flow/add-template-fields.tsx:403 msgid "Configure the {0} field" msgstr "Configure the {0} field" @@ -219,7 +219,7 @@ msgstr "Copied to clipboard" msgid "Custom Text" msgstr "Custom Text" -#: packages/ui/primitives/document-flow/add-fields.tsx:846 +#: packages/ui/primitives/document-flow/add-fields.tsx:845 #: packages/ui/primitives/template-flow/add-template-fields.tsx:684 msgid "Date" msgstr "Date" @@ -251,7 +251,7 @@ msgstr "Download" msgid "Drag & drop your PDF here." msgstr "Drag & drop your PDF here." -#: packages/ui/primitives/document-flow/add-fields.tsx:976 +#: packages/ui/primitives/document-flow/add-fields.tsx:975 #: packages/ui/primitives/template-flow/add-template-fields.tsx:814 msgid "Dropdown" msgstr "Dropdown" @@ -260,7 +260,7 @@ msgstr "Dropdown" msgid "Dropdown options" msgstr "Dropdown options" -#: packages/ui/primitives/document-flow/add-fields.tsx:794 +#: packages/ui/primitives/document-flow/add-fields.tsx:793 #: packages/ui/primitives/document-flow/add-signature.tsx:272 #: packages/ui/primitives/document-flow/add-signers.tsx:500 #: packages/ui/primitives/template-flow/add-template-fields.tsx:632 @@ -379,7 +379,7 @@ msgstr "Message <0>(Optional)" msgid "Min" msgstr "Min" -#: packages/ui/primitives/document-flow/add-fields.tsx:820 +#: packages/ui/primitives/document-flow/add-fields.tsx:819 #: packages/ui/primitives/document-flow/add-signature.tsx:298 #: packages/ui/primitives/document-flow/add-signers.tsx:535 #: packages/ui/primitives/document-flow/add-signers.tsx:541 @@ -401,12 +401,12 @@ msgstr "Needs to sign" msgid "Needs to view" msgstr "Needs to view" -#: packages/ui/primitives/document-flow/add-fields.tsx:631 +#: packages/ui/primitives/document-flow/add-fields.tsx:630 #: packages/ui/primitives/template-flow/add-template-fields.tsx:497 msgid "No recipient matching this description was found." msgstr "No recipient matching this description was found." -#: packages/ui/primitives/document-flow/add-fields.tsx:647 +#: packages/ui/primitives/document-flow/add-fields.tsx:646 #: packages/ui/primitives/template-flow/add-template-fields.tsx:513 msgid "No recipients with this role" msgstr "No recipients with this role" @@ -431,7 +431,7 @@ msgstr "No signature field found" msgid "No value found." msgstr "No value found." -#: packages/ui/primitives/document-flow/add-fields.tsx:898 +#: packages/ui/primitives/document-flow/add-fields.tsx:897 #: packages/ui/primitives/template-flow/add-template-fields.tsx:736 msgid "Number" msgstr "Number" @@ -466,7 +466,7 @@ msgstr "Pick a number" msgid "Placeholder" msgstr "Placeholder" -#: packages/ui/primitives/document-flow/add-fields.tsx:924 +#: packages/ui/primitives/document-flow/add-fields.tsx:923 #: packages/ui/primitives/template-flow/add-template-fields.tsx:762 msgid "Radio" msgstr "Radio" @@ -502,7 +502,7 @@ msgstr "Red" msgid "Redirect URL" msgstr "Redirect URL" -#: packages/ui/primitives/document-flow/add-fields.tsx:1027 +#: packages/ui/primitives/document-flow/add-fields.tsx:1026 msgid "Remove" msgstr "Remove" @@ -573,7 +573,7 @@ msgstr "Show advanced settings" msgid "Sign" msgstr "Sign" -#: packages/ui/primitives/document-flow/add-fields.tsx:742 +#: packages/ui/primitives/document-flow/add-fields.tsx:741 #: packages/ui/primitives/document-flow/add-signature.tsx:323 #: packages/ui/primitives/document-flow/field-icon.tsx:52 #: packages/ui/primitives/template-flow/add-template-fields.tsx:580 @@ -621,7 +621,7 @@ msgstr "Submit" msgid "Template title" msgstr "Template title" -#: packages/ui/primitives/document-flow/add-fields.tsx:872 +#: packages/ui/primitives/document-flow/add-fields.tsx:871 #: packages/ui/primitives/template-flow/add-template-fields.tsx:710 msgid "Text" msgstr "Text" @@ -682,7 +682,7 @@ msgstr "The signer's name" msgid "This can be overriden by setting the authentication requirements directly on each recipient in the next step." msgstr "This can be overriden by setting the authentication requirements directly on each recipient in the next step." -#: packages/ui/primitives/document-flow/add-fields.tsx:703 +#: packages/ui/primitives/document-flow/add-fields.tsx:702 msgid "This document has already been sent to this recipient. You can no longer edit this recipient." msgstr "This document has already been sent to this recipient. You can no longer edit this recipient." @@ -694,7 +694,7 @@ msgstr "This document is password protected. Please enter the password to view t msgid "This field cannot be modified or deleted. When you share this template's direct link or add it to your public profile, anyone who accesses it can input their name and email, and fill in the fields assigned to them." msgstr "This field cannot be modified or deleted. When you share this template's direct link or add it to your public profile, anyone who accesses it can input their name and email, and fill in the fields assigned to them." -#: packages/ui/primitives/document-flow/add-fields.tsx:1007 +#: packages/ui/primitives/document-flow/add-fields.tsx:1006 msgid "This recipient can no longer be modified as they have signed a field, or completed the document." msgstr "This recipient can no longer be modified as they have signed a field, or completed the document." @@ -719,7 +719,7 @@ msgstr "Time Zone" msgid "Title" msgstr "Title" -#: packages/ui/primitives/document-flow/add-fields.tsx:990 +#: packages/ui/primitives/document-flow/add-fields.tsx:989 #: packages/ui/primitives/template-flow/add-template-fields.tsx:828 msgid "To proceed further, please set at least one value for the {0} field." msgstr "To proceed further, please set at least one value for the {0} field." diff --git a/packages/lib/translations/fr/common.po b/packages/lib/translations/fr/common.po index ddd1ad814..efa766c21 100644 --- a/packages/lib/translations/fr/common.po +++ b/packages/lib/translations/fr/common.po @@ -115,7 +115,7 @@ msgstr "Administrateur" msgid "Advanced Options" msgstr "Options avancées" -#: packages/ui/primitives/document-flow/add-fields.tsx:527 +#: packages/ui/primitives/document-flow/add-fields.tsx:529 #: packages/ui/primitives/template-flow/add-template-fields.tsx:402 msgid "Advanced settings" msgstr "Paramètres avancés" @@ -174,7 +174,7 @@ msgstr "CC'd" msgid "Character Limit" msgstr "Limite de caractères" -#: packages/ui/primitives/document-flow/add-fields.tsx:950 +#: packages/ui/primitives/document-flow/add-fields.tsx:949 #: packages/ui/primitives/template-flow/add-template-fields.tsx:788 msgid "Checkbox" msgstr "Case à cocher" @@ -203,7 +203,7 @@ msgstr "Fermer" msgid "Configure Direct Recipient" msgstr "Configurer le destinataire direct" -#: packages/ui/primitives/document-flow/add-fields.tsx:528 +#: packages/ui/primitives/document-flow/add-fields.tsx:530 #: packages/ui/primitives/template-flow/add-template-fields.tsx:403 msgid "Configure the {0} field" msgstr "Configurer le champ {0}" @@ -220,7 +220,7 @@ msgstr "Copié dans le presse-papiers" msgid "Custom Text" msgstr "Texte personnalisé" -#: packages/ui/primitives/document-flow/add-fields.tsx:846 +#: packages/ui/primitives/document-flow/add-fields.tsx:845 #: packages/ui/primitives/template-flow/add-template-fields.tsx:684 msgid "Date" msgstr "Date" @@ -252,7 +252,7 @@ msgstr "Télécharger" msgid "Drag & drop your PDF here." msgstr "Faites glisser et déposez votre PDF ici." -#: packages/ui/primitives/document-flow/add-fields.tsx:976 +#: packages/ui/primitives/document-flow/add-fields.tsx:975 #: packages/ui/primitives/template-flow/add-template-fields.tsx:814 msgid "Dropdown" msgstr "Liste déroulante" @@ -261,7 +261,7 @@ msgstr "Liste déroulante" msgid "Dropdown options" msgstr "Options de liste déroulante" -#: packages/ui/primitives/document-flow/add-fields.tsx:794 +#: packages/ui/primitives/document-flow/add-fields.tsx:793 #: packages/ui/primitives/document-flow/add-signature.tsx:272 #: packages/ui/primitives/document-flow/add-signers.tsx:500 #: packages/ui/primitives/template-flow/add-template-fields.tsx:632 @@ -380,7 +380,7 @@ msgstr "Message <0>(Optionnel)" msgid "Min" msgstr "Min" -#: packages/ui/primitives/document-flow/add-fields.tsx:820 +#: packages/ui/primitives/document-flow/add-fields.tsx:819 #: packages/ui/primitives/document-flow/add-signature.tsx:298 #: packages/ui/primitives/document-flow/add-signers.tsx:535 #: packages/ui/primitives/document-flow/add-signers.tsx:541 @@ -402,12 +402,12 @@ msgstr "Nécessite une signature" msgid "Needs to view" msgstr "Nécessite une visualisation" -#: packages/ui/primitives/document-flow/add-fields.tsx:631 +#: packages/ui/primitives/document-flow/add-fields.tsx:630 #: packages/ui/primitives/template-flow/add-template-fields.tsx:497 msgid "No recipient matching this description was found." msgstr "Aucun destinataire correspondant à cette description n'a été trouvé." -#: packages/ui/primitives/document-flow/add-fields.tsx:647 +#: packages/ui/primitives/document-flow/add-fields.tsx:646 #: packages/ui/primitives/template-flow/add-template-fields.tsx:513 msgid "No recipients with this role" msgstr "Aucun destinataire avec ce rôle" @@ -432,7 +432,7 @@ msgstr "Aucun champ de signature trouvé" msgid "No value found." msgstr "Aucune valeur trouvée." -#: packages/ui/primitives/document-flow/add-fields.tsx:898 +#: packages/ui/primitives/document-flow/add-fields.tsx:897 #: packages/ui/primitives/template-flow/add-template-fields.tsx:736 msgid "Number" msgstr "Numéro" @@ -467,7 +467,7 @@ msgstr "Choisissez un numéro" msgid "Placeholder" msgstr "Espace réservé" -#: packages/ui/primitives/document-flow/add-fields.tsx:924 +#: packages/ui/primitives/document-flow/add-fields.tsx:923 #: packages/ui/primitives/template-flow/add-template-fields.tsx:762 msgid "Radio" msgstr "Radio" @@ -503,7 +503,7 @@ msgstr "Rouge" msgid "Redirect URL" msgstr "URL de redirection" -#: packages/ui/primitives/document-flow/add-fields.tsx:1027 +#: packages/ui/primitives/document-flow/add-fields.tsx:1026 msgid "Remove" msgstr "Retirer" @@ -574,7 +574,7 @@ msgstr "Afficher les paramètres avancés" msgid "Sign" msgstr "Signer" -#: packages/ui/primitives/document-flow/add-fields.tsx:742 +#: packages/ui/primitives/document-flow/add-fields.tsx:741 #: packages/ui/primitives/document-flow/add-signature.tsx:323 #: packages/ui/primitives/document-flow/field-icon.tsx:52 #: packages/ui/primitives/template-flow/add-template-fields.tsx:580 @@ -622,7 +622,7 @@ msgstr "Soumettre" msgid "Template title" msgstr "Titre du modèle" -#: packages/ui/primitives/document-flow/add-fields.tsx:872 +#: packages/ui/primitives/document-flow/add-fields.tsx:871 #: packages/ui/primitives/template-flow/add-template-fields.tsx:710 msgid "Text" msgstr "Texte" @@ -683,7 +683,7 @@ msgstr "Le nom du signataire" msgid "This can be overriden by setting the authentication requirements directly on each recipient in the next step." msgstr "Cela peut être remplacé par le paramétrage direct des exigences d'authentification pour chaque destinataire à l'étape suivante." -#: packages/ui/primitives/document-flow/add-fields.tsx:703 +#: packages/ui/primitives/document-flow/add-fields.tsx:702 msgid "This document has already been sent to this recipient. You can no longer edit this recipient." msgstr "Ce document a déjà été envoyé à ce destinataire. Vous ne pouvez plus modifier ce destinataire." @@ -695,7 +695,7 @@ msgstr "Ce document est protégé par mot de passe. Veuillez entrer le mot de pa msgid "This field cannot be modified or deleted. When you share this template's direct link or add it to your public profile, anyone who accesses it can input their name and email, and fill in the fields assigned to them." msgstr "Ce champ ne peut pas être modifié ou supprimé. Lorsque vous partagez le lien direct de ce modèle ou l'ajoutez à votre profil public, toute personne qui y accède peut saisir son nom et son email, et remplir les champs qui lui sont attribués." -#: packages/ui/primitives/document-flow/add-fields.tsx:1007 +#: packages/ui/primitives/document-flow/add-fields.tsx:1006 msgid "This recipient can no longer be modified as they have signed a field, or completed the document." msgstr "" @@ -720,7 +720,7 @@ msgstr "Fuseau horaire" msgid "Title" msgstr "Titre" -#: packages/ui/primitives/document-flow/add-fields.tsx:990 +#: packages/ui/primitives/document-flow/add-fields.tsx:989 #: packages/ui/primitives/template-flow/add-template-fields.tsx:828 msgid "To proceed further, please set at least one value for the {0} field." msgstr "Pour continuer, veuillez définir au moins une valeur pour le champ {0}." diff --git a/packages/ui/primitives/document-flow/add-fields.tsx b/packages/ui/primitives/document-flow/add-fields.tsx index 8f0e51602..7834c175a 100644 --- a/packages/ui/primitives/document-flow/add-fields.tsx +++ b/packages/ui/primitives/document-flow/add-fields.tsx @@ -365,6 +365,8 @@ export const AddFieldsFormPartial = ({ return; } + setSelectedSigner(recipients.find((r) => r.email === field.signerEmail) ?? null); + const { x: pageX, y: pageY } = getFieldPosition($page, node); update(index, { @@ -373,7 +375,7 @@ export const AddFieldsFormPartial = ({ pageY, }); }, - [getFieldPosition, localFields, update], + [getFieldPosition, localFields, recipients, update], ); const onFieldCopy = useCallback( @@ -572,10 +574,7 @@ export const AddFieldsFormPartial = ({ key={index} recipientIndex={recipientIndex === -1 ? 0 : recipientIndex} field={field} - disabled={ - selectedSigner?.email !== field.signerEmail || - !canRecipientBeModified(selectedSigner, fields) - } + disabled={!selectedSigner || !canRecipientBeModified(selectedSigner, fields)} minHeight={fieldBounds.current.height} minWidth={fieldBounds.current.width} passive={isFieldWithinBounds && !!selectedField} @@ -664,7 +663,7 @@ export const AddFieldsFormPartial = ({ }, )} onSelect={() => { - setSelectedSigner(recipient); + setSelectedSigner(recipient); // here setShowRecipientsSelector(false); }} >