From d4324538cc33ec28de16231abbc14f0f1dcf7cc7 Mon Sep 17 00:00:00 2001 From: litaesther10 Date: Wed, 22 Mar 2023 17:12:15 +0100 Subject: [PATCH] Inline items, left aligned --- apps/web/pages/documents/[id]/recipients.tsx | 174 ++++++++++--------- 1 file changed, 88 insertions(+), 86 deletions(-) diff --git a/apps/web/pages/documents/[id]/recipients.tsx b/apps/web/pages/documents/[id]/recipients.tsx index 9a4dac1c3..96b78c409 100644 --- a/apps/web/pages/documents/[id]/recipients.tsx +++ b/apps/web/pages/documents/[id]/recipients.tsx @@ -139,7 +139,7 @@ const RecipientsPage: NextPageWithLayout = (props: any) => {
-

+

Signers

@@ -248,99 +248,101 @@ const RecipientsPage: NextPageWithLayout = (props: any) => { placeholder="John Dorian" />

-
-
- {item.sendStatus === "NOT_SENT" ? ( - - Not Sent - - ) : ( - "" - )} - {item.sendStatus === "SENT" && - item.readStatus !== "OPENED" ? ( - +
+
+
+ {item.sendStatus === "NOT_SENT" ? ( - Sent + Not Sent - - ) : ( - "" - )} - {item.readStatus === "OPENED" && - item.signingStatus === "NOT_SIGNED" ? ( - - - - - Seen + ) : ( + "" + )} + {item.sendStatus === "SENT" && + item.readStatus !== "OPENED" ? ( + + + Sent + - - ) : ( - "" - )} - {item.signingStatus === "SIGNED" ? ( - - - - Signed + ) : ( + "" + )} + {item.readStatus === "OPENED" && + item.signingStatus === "NOT_SIGNED" ? ( + + + + + Seen + - - ) : ( - "" - )} + ) : ( + "" + )} + {item.signingStatus === "SIGNED" ? ( + + + + Signed + + + ) : ( + "" + )} +
-
-
- { - if (confirm("Resend this signing request?")) { - setLoading(true); - sendSigningRequests(props.document, [ - item.id, - ]).finally(() => { - setLoading(false); - }); +
+ - Resend - - { - const removedItem = { ...fields }[index]; - remove(index); - deleteRecipient(item)?.catch((err) => { - append(removedItem); - }); - }} - className="group-hover:text-neon-dark group-hover:disabled:text-gray-400" - /> + color="secondary" + className="my-auto mr-4 h-9" + onClick={() => { + if (confirm("Resend this signing request?")) { + setLoading(true); + sendSigningRequests(props.document, [ + item.id, + ]).finally(() => { + setLoading(false); + }); + } + }} + > + Resend + + { + const removedItem = { ...fields }[index]; + remove(index); + deleteRecipient(item)?.catch((err) => { + append(removedItem); + }); + }} + className="group-hover:text-neon-dark group-hover:disabled:text-gray-400" + /> +