diff --git a/apps/web/pages/documents/[id]/recipients.tsx b/apps/web/pages/documents/[id]/recipients.tsx index 13c681a01..38ef2c329 100644 --- a/apps/web/pages/documents/[id]/recipients.tsx +++ b/apps/web/pages/documents/[id]/recipients.tsx @@ -11,6 +11,7 @@ import { PencilSquareIcon, TrashIcon, UserPlusIcon, + EnvelopeIcon, XMarkIcon, } from "@heroicons/react/24/outline"; import { getUserFromToken } from "@documenso/lib/server"; @@ -329,11 +330,13 @@ const RecipientsPage: NextPageWithLayout = (props: any) => { } /> > ); diff --git a/packages/ui/components/dialog/Dialog.tsx b/packages/ui/components/dialog/Dialog.tsx index 4d4637246..e2625d036 100644 --- a/packages/ui/components/dialog/Dialog.tsx +++ b/packages/ui/components/dialog/Dialog.tsx @@ -2,10 +2,13 @@ import React from "react"; import { Transition, Dialog as DialogComponent } from "@headlessui/react"; import { Fragment } from "react"; import { Button } from "@documenso/ui"; -import { EnvelopeIcon } from "@heroicons/react/24/outline"; import { sendSigningRequests } from "@documenso/lib/api"; -export function Dialog({ open, setOpen, document, formValues, setLoading }: any) { +export function Dialog({ title, open, setOpen, document, formValues, setLoading, icon }: any) { + const unsentEmailsLength = formValues.filter( + (s: any) => s.email && s.sendStatus != "SENT" + ).length; + return ( @@ -35,20 +38,18 @@ export function Dialog({ open, setOpen, document, formValues, setLoading }: any) - + {icon} - Ready to send + {title} - {`"${document.title}" will be sent to ${ - formValues.filter((s: any) => s.email && s.sendStatus != "SENT").length - } recipients.`} + {`"${document.title}" will be sent to ${unsentEmailsLength} recipients.`}
- {`"${document.title}" will be sent to ${ - formValues.filter((s: any) => s.email && s.sendStatus != "SENT").length - } recipients.`} + {`"${document.title}" will be sent to ${unsentEmailsLength} recipients.`}