🚸 Associate recipients to fields, improved flow

This commit is contained in:
Timur Ercan
2023-02-15 15:44:23 +01:00
parent 5d4b51b094
commit 676c563c2f
7 changed files with 168 additions and 49 deletions

View File

@ -9,6 +9,7 @@ import { DocumentStatus } from "@prisma/client";
import {
InformationCircleIcon,
PaperAirplaneIcon,
UserPlusIcon,
UsersIcon,
} from "@heroicons/react/24/outline";
import { getDocument } from "@documenso/lib/query";
@ -66,7 +67,6 @@ const DocumentsDetailPage: NextPageWithLayout = (props: any) => {
<div className="mt-4 flex flex-shrink-0 md:mt-0 md:ml-4">
<Button
icon={PaperAirplaneIcon}
disabled={(props?.document?.Recipient?.length || 0) === 0}
className="ml-3"
href={
NEXT_PUBLIC_WEBAPP_URL +

View File

@ -8,6 +8,7 @@ import {
CheckIcon,
EnvelopeIcon,
PaperAirplaneIcon,
PencilSquareIcon,
UserPlusIcon,
XMarkIcon,
} from "@heroicons/react/24/outline";
@ -62,6 +63,14 @@ const RecipientsPage: NextPageWithLayout = (props: any) => {
</h2>
</div>
<div className="mt-4 flex flex-shrink-0 md:mt-0 md:ml-4">
<Button
icon={PencilSquareIcon}
color="secondary"
className="mr-2"
href={breadcrumbItems[1].href}
>
Customize Document
</Button>
<Button
className="min-w-[125px]"
color="primary"