Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
feat: add help tip to supported file type upload
Marc Seitzce1d57aee7f7
diff --git a/components/documents/add-document-modal.tsx b/components/documents/add-document-modal.tsxindex 92928c97..6874af4f 100644--- a/components/documents/add-document-modal.tsx+++ b/components/documents/add-document-modal.tsx@@ -1,3 +1,4 @@+import Link from "next/link";import { useRouter } from "next/router";import { FormEvent, useEffect, useState } from "react";@@ -417,10 +418,21 @@ export function AddDocumentModal({{newVersion ? `Upload a new version` : `Share a document`}</CardTitle><CardDescription>- {newVersion- ? `After you upload a new version, the existing links will remain the unchanged.`- : `After you upload the document, a shareable link will be- generated and copied to your clipboard.`}+ {newVersion ? (+ `After you upload a new version, the existing links will remain the unchanged.`+ ) : (+ <span>+ After you upload the document, create a shareable link on+ the document page.{" "}+ <Link+ href="https://www.papermark.io/help/article/document-types"+ target="_blank"+ className="underline underline-offset-4 transition-all hover:text-muted-foreground/80 hover:dark:text-muted-foreground/80"+ >+ Learn more about what file types are supported.+ </Link>+ </span>+ )}</CardDescription></CardHeader><CardContent className="space-y-2">