Use dynamic values for title and icon for dialog

This commit is contained in:
Ephraim Atta-Duncan
2023-03-28 12:47:28 +00:00
parent 16f6da01c0
commit a9befd342c
2 changed files with 11 additions and 7 deletions

View File

@ -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) => {
</div>
<Dialog
title="Ready to send"
document={props.document}
formValues={formValues}
open={open}
setLoading={setLoading}
setOpen={setOpen}
icon={<EnvelopeIcon className="w-6 h-6 text-green-600" aria-hidden="true" />}
/>
</>
);