diff --git a/app/student/forms/edit-recipient/page.tsx b/app/student/forms/edit-recipient/page.tsx index ef2cc060..8fa10e48 100644 --- a/app/student/forms/edit-recipient/page.tsx +++ b/app/student/forms/edit-recipient/page.tsx @@ -170,134 +170,136 @@ export default function EditRecipientPage() { }; return ( -
- Edit Recipient Email - {isInvalidCorrectionLink ? ( - -
- -
-

- This correction link is no longer available -

-

- The recipient may have already been updated, the link may be - missing an event id, or the correction request is no longer - valid. -

- -
-
-
- ) : ( - -

- Step {isConfirming ? 2 : 1} of 2 -

-

{formLabel}

-

- {isConfirming - ? "Please review the updated recipient details before submitting." - : "Update the email for this signing step so we can resend the request."} -

- - {!isConfirming && ( -
- ({ - id: party.id, - title: party.title, - email: party.email, - isMe: isCurrentUserSigningParty(party.title), - isEditable: party.id === targetSigningPartyId, - }))} - oldEmail={oldEmail} - editableEmail={recipientEmail} - onEditableEmailChange={setRecipientEmail} - editableDisabled={submitting} - editableError={editableError} - /> +
+
+ Edit Recipient Email + {isInvalidCorrectionLink ? ( + +
+ +
+

+ This correction link is no longer available +

+

+ The recipient may have already been updated, the link may be + missing an event id, or the correction request is no longer + valid. +

+ +
- )} +
+ ) : ( + +

+ Step {isConfirming ? 2 : 1} of 2 +

+

{formLabel}

+

+ {isConfirming + ? "Please review the updated recipient details before submitting." + : "Update the email for this signing step so we can resend the request."} +

-
- {isConfirming && ( -
-
- - - Please check if all your inputs are correct - -
+ {!isConfirming && ( +
({ id: party.id, title: party.title, - email: - party.id === targetSigningPartyId - ? recipientEmail - : party.email, + email: party.email, isMe: isCurrentUserSigningParty(party.title), + isEditable: party.id === targetSigningPartyId, }))} - isConfirmingRecipients + oldEmail={oldEmail} + editableEmail={recipientEmail} + onEditableEmailChange={setRecipientEmail} + editableDisabled={submitting} + editableError={editableError} /> -
)} - {statusType !== "idle" && ( -

- {statusMessage} -

- )} -
+ {isConfirming && ( +
+
+ + + Please check if all your inputs are correct + +
+ ({ + id: party.id, + title: party.title, + email: + party.id === targetSigningPartyId + ? recipientEmail + : party.email, + isMe: isCurrentUserSigningParty(party.title), + }))} + isConfirmingRecipients + /> + +
+ )} + {statusType !== "idle" && ( +

+ {statusMessage} +

+ )} + +
+ {isConfirming && ( + + )} - )} - -
- - - )} +
+ + + )} +
); }