diff --git a/apps/web/package.json b/apps/web/package.json index f0fe6f48b..31e8ff4f1 100644 --- a/apps/web/package.json +++ b/apps/web/package.json @@ -34,6 +34,7 @@ "react-icons": "^4.8.0", "react-pdf": "^7.1.1", "react-rnd": "^10.4.1", + "ts-pattern": "^5.0.5", "typescript": "5.1.6", "zod": "^3.21.4" }, diff --git a/apps/web/src/app/(dashboard)/documents/[id]/edit-document.tsx b/apps/web/src/app/(dashboard)/documents/[id]/edit-document.tsx index d0c369e8d..6e10fb45d 100644 --- a/apps/web/src/app/(dashboard)/documents/[id]/edit-document.tsx +++ b/apps/web/src/app/(dashboard)/documents/[id]/edit-document.tsx @@ -2,29 +2,15 @@ import { useState } from 'react'; -import dynamic from 'next/dynamic'; - -import { Loader } from 'lucide-react'; - import { Document, Field, Recipient, User } from '@documenso/prisma/client'; import { cn } from '@documenso/ui/lib/utils'; import { Card, CardContent } from '@documenso/ui/primitives/card'; +import { LazyPDFViewer } from '~/components/(dashboard)/pdf-viewer/lazy-pdf-viewer'; import { AddFieldsFormPartial } from '~/components/forms/edit-document/add-fields'; import { AddSignersFormPartial } from '~/components/forms/edit-document/add-signers'; import { AddSubjectFormPartial } from '~/components/forms/edit-document/add-subject'; -const PDFViewer = dynamic(async () => import('~/components/(dashboard)/pdf-viewer/pdf-viewer'), { - ssr: false, - loading: () => ( -
Loading document...
+ Everyone has signed! You will receive an Email copy of the signed document. +
+ You will receive an Email copy of the signed document once everyone has signed. +
+ Want so send slick signing links like this one?{' '} + + Check out Documenso. + +
Date
{field.customText}
+ Please review the document before signing. +
Name
+ {document.User.name} ({document.User.email}) has invited you to sign this document. +
+ Signature +
+ {signature?.typedSignature} +