Apply prettier config to all files
This commit is contained in:
@@ -6,16 +6,13 @@ export const deleteRecipient = (recipient: any) => {
|
||||
}
|
||||
|
||||
return toast.promise(
|
||||
fetch(
|
||||
"/api/documents/" + recipient.documentId + "/recipients/" + recipient.id,
|
||||
{
|
||||
method: "DELETE",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
body: JSON.stringify(recipient),
|
||||
}
|
||||
),
|
||||
fetch("/api/documents/" + recipient.documentId + "/recipients/" + recipient.id, {
|
||||
method: "DELETE",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
body: JSON.stringify(recipient),
|
||||
}),
|
||||
{
|
||||
loading: "Deleting...",
|
||||
success: "Deleted.",
|
||||
|
||||
@@ -7,4 +7,4 @@ export { getDocuments } from "./getDocuments";
|
||||
export { deleteDocument } from "./deleteDocument";
|
||||
export { deleteRecipient } from "./deleteRecipient";
|
||||
export { createOrUpdateRecipient } from "./createOrUpdateRecipient";
|
||||
export { sendSigningRequests } from "./sendSigningRequests";
|
||||
export { sendSigningRequests } from "./sendSigningRequests";
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
import toast from "react-hot-toast";
|
||||
|
||||
export const sendSigningRequests = async (
|
||||
document: any,
|
||||
resendTo: number[] = []
|
||||
) => {
|
||||
export const sendSigningRequests = async (document: any, resendTo: number[] = []) => {
|
||||
if (!document || !document.id) return;
|
||||
try {
|
||||
const sent = await toast.promise(
|
||||
|
||||
@@ -1,11 +1,7 @@
|
||||
import { useRouter } from "next/router";
|
||||
import toast from "react-hot-toast";
|
||||
|
||||
export const signDocument = (
|
||||
document: any,
|
||||
signatures: any[],
|
||||
token: string
|
||||
): Promise<any> => {
|
||||
export const signDocument = (document: any, signatures: any[], token: string): Promise<any> => {
|
||||
const body = { documentId: document.id, signatures };
|
||||
|
||||
return toast.promise(
|
||||
|
||||
Reference in New Issue
Block a user