Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
chore: cleanup
Marc Seitz7c046a57ecbd
diff --git a/components/links/link-sheet/og-section.tsx b/components/links/link-sheet/og-section.tsxindex 678d9f7c..90ca1486 100644--- a/components/links/link-sheet/og-section.tsx+++ b/components/links/link-sheet/og-section.tsx@@ -76,34 +76,6 @@ export default function OGSection({setEnabled(enableCustomMetatag);}, [enableCustomMetatag]);- // useEffect(() => {- // if (- // presets?.enableCustomMetaTag &&- // !(metaTitle || metaDescription || metaImage || metaFavicon)- // ) {- // const preset = presets;- // if (preset) {- // setData((prev) => ({- // ...prev,- // metaFavicon: prev.metaFavicon || preset.metaFavicon,- // metaImage: prev.metaImage || preset.metaImage,- // metaTitle: prev.metaTitle || preset.metaTitle,- // metaDescription: prev.metaDescription || preset.metaDescription,- // enableCustomMetatag: !editLink && true,- // }));- // }- // }- // }, [- // presets,- // setData,- // editLink,- // metaFavicon,- // enableCustomMetatag,- // metaTitle,- // metaDescription,- // metaImage,- // ]);-const handleCustomMetatag = async () => {const updatedCustomMetatag = !enabled;@@ -165,8 +137,8 @@ export default function OGSection({return (<div className="pb-5"><LinkItem- tooltipContent="Customize how your content appears when shared on social media."- title="Custom social media cards"+ tooltipContent="Customize how your links look when shared."+ title="Custom Link Preview"link="https://www.papermark.com/help/article/change-social-media-cards"enabled={enableCustomMetatag}action={handleCustomMetatag}diff --git a/components/links/link-sheet/upload-section/index.tsx b/components/links/link-sheet/upload-section/index.tsxindex 22dc92c6..fd35af42 100644--- a/components/links/link-sheet/upload-section/index.tsx+++ b/components/links/link-sheet/upload-section/index.tsx@@ -196,12 +196,12 @@ export default function UploadSection({enabled={enabled}action={handleUpload}isAllowed={isAllowed}- requiredPlan="datarooms"+ requiredPlan="data rooms plus"upgradeAction={() =>handleUpgradeStateChange({state: true,trigger: "link_sheet_upload_section",- plan: "Data Rooms",+ plan: "Data Rooms Plus",})}/>diff --git a/lib/types.ts b/lib/types.tsindex f485744b..c6f18765 100644--- a/lib/types.ts+++ b/lib/types.ts@@ -1,12 +1,10 @@import {Agreement,CustomField,- Dataroom,DataroomDocument,DataroomFolder,Document,DocumentVersion,- Feedback,Link,User as PrismaUser,View,