+
- Email
-
-
{
- if (!errors?.signers?.[index])
- createOrUpdateRecipient({
- ...formValues[index],
- documentId: props.document.id,
- });
- }}
- onKeyDown={(event: any) => {
- if (event.key === "Enter")
+
+
{
if (!errors?.signers?.[index])
createOrUpdateRecipient({
...formValues[index],
documentId: props.document.id,
});
- }}
- className="block w-full p-0 text-gray-900 placeholder-gray-500 border-0 outline-none sm:text-sm bg-inherit"
- placeholder="john.dorian@loremipsum.com"
- />
- {errors?.signers?.[index] ? (
-
- Invalid Email
-
- ) : (
- ""
- )}
-
-
-
- {
- if (!errors?.signers?.[index])
- createOrUpdateRecipient({
- ...formValues[index],
- documentId: props.document.id,
- });
- }}
- onKeyDown={(event: any) => {
- if (
- event.key === "Enter" &&
- !errors?.signers?.[index]
- )
- createOrUpdateRecipient({
- ...formValues[index],
- documentId: props.document.id,
- });
- }}
- className="block w-full p-0 text-gray-900 placeholder-gray-500 border-0 outline-none sm:text-sm bg-inherit"
- placeholder="John Dorian"
- />
-
-
-
- {item.sendStatus === "NOT_SENT" ? (
-
{
+ if (event.key === "Enter")
+ if (!errors?.signers?.[index])
+ createOrUpdateRecipient({
+ ...formValues[index],
+ documentId: props.document.id,
+ });
+ }}
+ className="block w-full p-0 text-gray-900 placeholder-gray-500 border-0 outline-none sm:text-sm bg-inherit"
+ placeholder="john.dorian@loremipsum.com"
+ />
+ {errors?.signers?.[index] ? (
+
- Not Sent
-
- ) : (
- ""
- )}
- {item.sendStatus === "SENT" &&
- item.readStatus !== "OPENED" ? (
-
-
- {" "}
- Sent
-
-
- ) : (
- ""
- )}
- {item.readStatus === "OPENED" &&
- item.signingStatus === "NOT_SIGNED" ? (
-
-
-
-
- Seen
-
-
- ) : (
- ""
- )}
- {item.signingStatus === "SIGNED" ? (
-
-
-
- Signed
-
-
+
Invalid Email
+
) : (
""
)}
-
-
+
+
+
+ {item.sendStatus === "NOT_SENT" ? (
+
+ Not Sent
+
+ ) : (
+ ""
+ )}
+ {item.sendStatus === "SENT" &&
+ item.readStatus !== "OPENED" ? (
+
+
+ Sent
+
+
+ ) : (
+ ""
+ )}
+ {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"
+ />
+