Skip to content

Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.

chore: prettier cleanup

Marc Seitzd5546112b583
diff --git a/app/(auth)/login/page-client.tsx b/app/(auth)/login/page-client.tsx
index bdf28c99..91aef29b 100644
--- a/app/(auth)/login/page-client.tsx
+++ b/app/(auth)/login/page-client.tsx
@@ -17,10 +17,10 @@ import { LastUsed, useLastUsed } from "@/components/hooks/useLastUsed";
import Google from "@/components/shared/icons/google";
import LinkedIn from "@/components/shared/icons/linkedin";
import Passkey from "@/components/shared/icons/passkey";
+import { LogoCloud } from "@/components/shared/logo-cloud";
import { Button } from "@/components/ui/button";
import { Input } from "@/components/ui/input";
import { Label } from "@/components/ui/label";
-import { LogoCloud } from "@/components/shared/logo-cloud";
export default function Login() {
const { next } = useParams as { next?: string };
@@ -53,12 +53,12 @@ export default function Login() {
className="absolute inset-x-0 top-10 -z-10 flex transform-gpu justify-center overflow-hidden blur-3xl"
aria-hidden="true"
></div>
- <div className="z-10 mx-5 mt-[calc(1vh)] sm:mt-[calc(2vh)] md:mt-[calc(3vh)] h-fit w-full max-w-md overflow-hidden rounded-lg sm:mx-0">
- <div className="flex flex-col items-left space-y-3 px-4 py-6 pt-8 sm:px-12">
+ <div className="z-10 mx-5 mt-[calc(1vh)] h-fit w-full max-w-md overflow-hidden rounded-lg sm:mx-0 sm:mt-[calc(2vh)] md:mt-[calc(3vh)]">
+ <div className="items-left flex flex-col space-y-3 px-4 py-6 pt-8 sm:px-12">
<img
src="/_static/papermark-logo.svg"
alt="Papermark Logo"
- className="h-7 w-auto mb-36 sm:mb-32 md:mb-48s -mt-8 self-start"
+ className="md:mb-48s -mt-8 mb-36 h-7 w-auto self-start sm:mb-32"
/>
<Link href="/">
<span className="text-balance text-3xl font-semibold text-gray-900">
@@ -227,42 +227,51 @@ export default function Login() {
</p>
</div>
</div>
- <div className="hidden w-full justify-center bg-black md:flex md:w-1/2 lg:w-1/2 relative overflow-hidden">
- <div className="flex w-full h-full relative min-h-[700px] p-0 m-0">
+ <div className="relative hidden w-full justify-center overflow-hidden bg-black md:flex md:w-1/2 lg:w-1/2">
+ <div className="relative m-0 flex h-full min-h-[700px] w-full p-0">
<div
- className="flex w-full h-full flex-col justify-between relative"
+ className="relative flex h-full w-full flex-col justify-between"
id="features"
>
{/* Testimonial top 2/3 */}
- <div className="flex flex-col items-center justify-center w-full" style={{height: '66.6666%'}}>
+ <div
+ className="flex w-full flex-col items-center justify-center"
+ style={{ height: "66.6666%" }}
+ >
{/* Image container */}
<div className="mb-4 h-64 w-80">
<img
className="h-full w-full rounded-2xl object-cover shadow-2xl"
src="/_static/testimonials/backtrace.jpeg"
- alt="Alonso"
+ alt="Backtrace Capital"
/>
</div>
{/* Text content */}
<div className="max-w-xl text-center">
- <blockquote className=" text-balance font-normal leading-8 text-white sm:text-xl sm:leading-9">
+ <blockquote className="text-balance font-normal leading-8 text-white sm:text-xl sm:leading-9">
<p>
- &quot;We raised our €30M Fund with Papermark Data Rooms. Love the customization, security and ease of use.&quot;
- </p>
+ &quot;We raised our €30M Fund with Papermark Data Rooms.
+ Love the customization, security and ease of use.&quot;
+ </p>
</blockquote>
<figcaption className="mt-4">
<div className="text-balance font-normal text-white">
- Michael Münnix
+ Michael Münnix
</div>
- <div className="text-balance text-gray-400 font-light">
+ <div className="text-balance font-light text-gray-400">
Partner, Backtrace Capital
</div>
</figcaption>
</div>
</div>
{/* White block with logos bottom 1/3, full width/height */}
- <div className="absolute left-0 bottom-0 w-full flex flex-col items-center justify-center bg-white" style={{height: '33.3333%'}}>
- <div className="max-w-xl mb-4 text-center text-balance font-semibold text-gray-900">Trusted by teams at</div>
+ <div
+ className="absolute bottom-0 left-0 flex w-full flex-col items-center justify-center bg-white"
+ style={{ height: "33.3333%" }}
+ >
+ <div className="mb-4 max-w-xl text-balance text-center font-semibold text-gray-900">
+ Trusted by teams at
+ </div>
<LogoCloud />
{/* <img
src="https://assets.papermark.io/upload/file_7JEGY7zM9ZTfmxu8pe7vWj-Screenshot-2025-05-09-at-18.09.13.png"
diff --git a/app/(auth)/verify/page.tsx b/app/(auth)/verify/page.tsx
index 98117d53..d0016d81 100644
--- a/app/(auth)/verify/page.tsx
+++ b/app/(auth)/verify/page.tsx
@@ -5,8 +5,8 @@ import NotFound from "@/pages/404";
import { generateChecksum } from "@/lib/utils/generate-checksum";
-import { Button } from "@/components/ui/button";
import { LogoCloud } from "@/components/shared/logo-cloud";
+import { Button } from "@/components/ui/button";
const data = {
description: "Verify login to Papermark",
@@ -77,12 +77,12 @@ export default function VerifyPage({
className="absolute inset-x-0 top-10 -z-10 flex transform-gpu justify-center overflow-hidden blur-3xl"
aria-hidden="true"
></div>
- <div className="z-10 mx-5 mt-[calc(1vh)] sm:mt-[calc(2vh)] md:mt-[calc(3vh)] h-fit w-full max-w-md overflow-hidden rounded-lg sm:mx-0">
- <div className="flex flex-col items-left space-y-3 px-4 py-6 pt-8 sm:px-12">
+ <div className="z-10 mx-5 mt-[calc(1vh)] h-fit w-full max-w-md overflow-hidden rounded-lg sm:mx-0 sm:mt-[calc(2vh)] md:mt-[calc(3vh)]">
+ <div className="items-left flex flex-col space-y-3 px-4 py-6 pt-8 sm:px-12">
<img
src="/_static/papermark-logo.svg"
alt="Papermark Logo"
- className="h-7 w-auto mb-36 sm:mb-32 md:mb-48 -mt-8 self-start"
+ className="-mt-8 mb-36 h-7 w-auto self-start sm:mb-32 md:mb-48"
/>
<Link href="/">
<span className="text-balance text-3xl font-semibold text-gray-900">
@@ -124,42 +124,51 @@ export default function VerifyPage({
</p>
</div>
</div>
- <div className="hidden w-full justify-center bg-black md:flex md:w-1/2 lg:w-1/2 relative overflow-hidden">
- <div className="flex w-full h-full relative min-h-[700px] p-0 m-0">
+ <div className="relative hidden w-full justify-center overflow-hidden bg-black md:flex md:w-1/2 lg:w-1/2">
+ <div className="relative m-0 flex h-full min-h-[700px] w-full p-0">
<div
- className="flex w-full h-full flex-col justify-between relative"
+ className="relative flex h-full w-full flex-col justify-between"
id="features"
>
{/* Testimonial top 2/3 */}
- <div className="flex flex-col items-center justify-center w-full" style={{height: '66.6666%'}}>
+ <div
+ className="flex w-full flex-col items-center justify-center"
+ style={{ height: "66.6666%" }}
+ >
{/* Image container */}
<div className="mb-4 h-64 w-80">
<img
className="h-full w-full rounded-2xl object-cover shadow-2xl"
src="/_static/testimonials/backtrace.jpeg"
- alt="Alonso"
+ alt="Backtrace Capital"
/>
</div>
{/* Text content */}
<div className="max-w-xl text-center">
<blockquote className="text-balance font-normal leading-8 text-white sm:text-xl sm:leading-9">
<p>
- &quot;We raised our €30M Fund with Papermark Data Rooms. Love the customization, security and ease of use.&quot;
+ &quot;We raised our €30M Fund with Papermark Data Rooms.
+ Love the customization, security and ease of use.&quot;
</p>
</blockquote>
<figcaption className="mt-4">
<div className="text-balance font-normal text-white">
Michael Münnix
</div>
- <div className="text-balance text-gray-400 font-light">
+ <div className="text-balance font-light text-gray-400">
Partner, Backtrace Capital
</div>
</figcaption>
</div>
</div>
{/* White block with logos bottom 1/3, full width/height */}
- <div className="absolute left-0 bottom-0 w-full flex flex-col items-center justify-center bg-white" style={{height: '33.3333%'}}>
- <div className="max-w-xl mb-4 text-center text-balance font-semibold text-gray-900">Trusted by teams at</div>
+ <div
+ className="absolute bottom-0 left-0 flex w-full flex-col items-center justify-center bg-white"
+ style={{ height: "33.3333%" }}
+ >
+ <div className="mb-4 max-w-xl text-balance text-center font-semibold text-gray-900">
+ Trusted by teams at
+ </div>
<LogoCloud />
</div>
</div>
diff --git a/components/shared/logo-cloud.tsx b/components/shared/logo-cloud.tsx
index d22a9329..8f24368c 100644
--- a/components/shared/logo-cloud.tsx
+++ b/components/shared/logo-cloud.tsx
@@ -175,9 +175,19 @@ export const LogoCloud = () => {
className="group col-span-1 flex items-center justify-center bg-white p-8 text-black transition-colors"
href="https://www.doordash.com"
>
- <svg height="24" width="900" xmlns="http://www.w3.org/2000/svg" viewBox="-0.10467479090509069 -0.01 154.13651397511398 17.862000000000002"><path d="M44.674 5.074v7.865h1.961a3.743 3.743 0 0 0 2.667-1.174A3.939 3.939 0 0 0 50.377 9a3.872 3.872 0 0 0-1.06-2.777 3.677 3.677 0 0 0-2.682-1.15h-1.96zm1.961-2.466c3.655 0 6.42 2.832 6.42 6.392s-2.765 6.408-6.42 6.408H42.31a.314.314 0 0 1-.31-.318V2.939c0-.176.139-.319.31-.319zm15.841 10.605c1.66.005 3.159-1.016 3.798-2.587a4.285 4.285 0 0 0-.878-4.587 4.027 4.027 0 0 0-4.47-.922C59.392 5.765 58.39 7.298 58.387 9c0 2.32 1.828 4.202 4.09 4.213m0-10.895c3.847 0 6.788 3.032 6.788 6.682s-2.941 6.682-6.789 6.682c-3.847 0-6.763-3.017-6.763-6.682s2.941-6.682 6.763-6.682M78.61 13.213c2.263-.006 4.094-1.89 4.092-4.21-.003-2.322-1.838-4.202-4.1-4.203-2.264 0-4.1 1.879-4.103 4.2 0 1.118.433 2.19 1.204 2.98a4.056 4.056 0 0 0 2.906 1.233m0-10.895c3.835 0 6.776 3.017 6.776 6.682s-2.953 6.682-6.776 6.682c-3.822 0-6.788-3.017-6.788-6.682s2.941-6.682 6.788-6.682m15.746 2.756H91.59v3.385h2.765a1.6 1.6 0 0 0 1.188-.453c.32-.31.502-.74.506-1.192a1.703 1.703 0 0 0-.48-1.246 1.616 1.616 0 0 0-1.214-.491zm-5.44-2.135c0-.176.14-.319.311-.319h5.206c2.482 0 4.278 1.865 4.278 4.207.019 1.584-.846 3.039-2.227 3.748l2.401 4.353a.325.325 0 0 1 .012.34.308.308 0 0 1-.294.156h-2.107a.31.31 0 0 1-.282-.172l-2.314-4.308H91.58v4.136a.314.314 0 0 1-.31.319h-2.03a.314.314 0 0 1-.31-.319l-.014-12.14zm16.767 2.195V13h1.96a3.743 3.743 0 0 0 2.668-1.17 3.938 3.938 0 0 0 1.077-2.763 3.872 3.872 0 0 0-1.057-2.782 3.677 3.677 0 0 0-2.687-1.15zm1.96-2.469c3.655 0 6.42 2.835 6.42 6.402s-2.765 6.402-6.42 6.402h-4.312a.314.314 0 0 1-.31-.319V3c0-.177.139-.32.31-.32l4.313-.015zm14.576 3.128l-1.517 4.206h3.031zm-2.407 6.583l-.993 2.8a.31.31 0 0 1-.31.22h-2.154a.307.307 0 0 1-.283-.134.325.325 0 0 1-.027-.318l4.654-12.139a.31.31 0 0 1 .31-.21h2.41a.31.31 0 0 1 .311.21l4.654 12.139a.325.325 0 0 1-.028.318.307.307 0 0 1-.283.133h-2.153a.31.31 0 0 1-.31-.22l-.993-2.8h-4.805zm11.069-6.31c0-2.01 1.694-3.748 4.369-3.748a5.457 5.457 0 0 1 3.88 1.499.322.322 0 0 1 0 .468L137.936 5.5a.306.306 0 0 1-.44 0 3.097 3.097 0 0 0-2.07-.837c-1.07 0-1.861.637-1.861 1.372 0 2.376 6.323 1.005 6.323 5.577-.003 2.317-1.71 4.07-4.728 4.07a6.25 6.25 0 0 1-4.511-1.858.322.322 0 0 1 0-.468l1.154-1.184a.307.307 0 0 1 .45 0 3.935 3.935 0 0 0 2.727 1.14c1.337 0 2.218-.732 2.218-1.649 0-2.377-6.32-1.005-6.32-5.578m20.476-3.162v4.804h-5.352V2.923a.314.314 0 0 0-.31-.318h-2.03a.314.314 0 0 0-.31.318V15.06c0 .176.14.319.31.319h2.03c.17 0 .31-.143.31-.319v-4.88h5.348v4.88c0 .176.14.319.31.319h2.03c.171 0 .31-.143.31-.319V2.923a.314.314 0 0 0-.31-.318h-2.03a.314.314 0 0 0-.306.318zM30.605 4.225C29.197 1.615 26.442-.01 23.446 0H.778a.78.78 0 0 0-.716.478.763.763 0 0 0 .168.836l4.938 4.9c.436.434 1.03.677 1.648.677h15.98c1.139-.012 2.07.89 2.082 2.013s-.901 2.043-2.04 2.054H11.821a.78.78 0 0 0-.718.476.763.763 0 0 0 .167.838l4.941 4.904a2.34 2.34 0 0 0 1.648.676h4.983c6.483 0 11.385-6.84 7.763-13.63" fill="#ff3008"/></svg>
+ <svg
+ height="24"
+ width="900"
+ xmlns="http://www.w3.org/2000/svg"
+ viewBox="-0.10467479090509069 -0.01 154.13651397511398 17.862000000000002"
+ >
+ <path
+ d="M44.674 5.074v7.865h1.961a3.743 3.743 0 0 0 2.667-1.174A3.939 3.939 0 0 0 50.377 9a3.872 3.872 0 0 0-1.06-2.777 3.677 3.677 0 0 0-2.682-1.15h-1.96zm1.961-2.466c3.655 0 6.42 2.832 6.42 6.392s-2.765 6.408-6.42 6.408H42.31a.314.314 0 0 1-.31-.318V2.939c0-.176.139-.319.31-.319zm15.841 10.605c1.66.005 3.159-1.016 3.798-2.587a4.285 4.285 0 0 0-.878-4.587 4.027 4.027 0 0 0-4.47-.922C59.392 5.765 58.39 7.298 58.387 9c0 2.32 1.828 4.202 4.09 4.213m0-10.895c3.847 0 6.788 3.032 6.788 6.682s-2.941 6.682-6.789 6.682c-3.847 0-6.763-3.017-6.763-6.682s2.941-6.682 6.763-6.682M78.61 13.213c2.263-.006 4.094-1.89 4.092-4.21-.003-2.322-1.838-4.202-4.1-4.203-2.264 0-4.1 1.879-4.103 4.2 0 1.118.433 2.19 1.204 2.98a4.056 4.056 0 0 0 2.906 1.233m0-10.895c3.835 0 6.776 3.017 6.776 6.682s-2.953 6.682-6.776 6.682c-3.822 0-6.788-3.017-6.788-6.682s2.941-6.682 6.788-6.682m15.746 2.756H91.59v3.385h2.765a1.6 1.6 0 0 0 1.188-.453c.32-.31.502-.74.506-1.192a1.703 1.703 0 0 0-.48-1.246 1.616 1.616 0 0 0-1.214-.491zm-5.44-2.135c0-.176.14-.319.311-.319h5.206c2.482 0 4.278 1.865 4.278 4.207.019 1.584-.846 3.039-2.227 3.748l2.401 4.353a.325.325 0 0 1 .012.34.308.308 0 0 1-.294.156h-2.107a.31.31 0 0 1-.282-.172l-2.314-4.308H91.58v4.136a.314.314 0 0 1-.31.319h-2.03a.314.314 0 0 1-.31-.319l-.014-12.14zm16.767 2.195V13h1.96a3.743 3.743 0 0 0 2.668-1.17 3.938 3.938 0 0 0 1.077-2.763 3.872 3.872 0 0 0-1.057-2.782 3.677 3.677 0 0 0-2.687-1.15zm1.96-2.469c3.655 0 6.42 2.835 6.42 6.402s-2.765 6.402-6.42 6.402h-4.312a.314.314 0 0 1-.31-.319V3c0-.177.139-.32.31-.32l4.313-.015zm14.576 3.128l-1.517 4.206h3.031zm-2.407 6.583l-.993 2.8a.31.31 0 0 1-.31.22h-2.154a.307.307 0 0 1-.283-.134.325.325 0 0 1-.027-.318l4.654-12.139a.31.31 0 0 1 .31-.21h2.41a.31.31 0 0 1 .311.21l4.654 12.139a.325.325 0 0 1-.028.318.307.307 0 0 1-.283.133h-2.153a.31.31 0 0 1-.31-.22l-.993-2.8h-4.805zm11.069-6.31c0-2.01 1.694-3.748 4.369-3.748a5.457 5.457 0 0 1 3.88 1.499.322.322 0 0 1 0 .468L137.936 5.5a.306.306 0 0 1-.44 0 3.097 3.097 0 0 0-2.07-.837c-1.07 0-1.861.637-1.861 1.372 0 2.376 6.323 1.005 6.323 5.577-.003 2.317-1.71 4.07-4.728 4.07a6.25 6.25 0 0 1-4.511-1.858.322.322 0 0 1 0-.468l1.154-1.184a.307.307 0 0 1 .45 0 3.935 3.935 0 0 0 2.727 1.14c1.337 0 2.218-.732 2.218-1.649 0-2.377-6.32-1.005-6.32-5.578m20.476-3.162v4.804h-5.352V2.923a.314.314 0 0 0-.31-.318h-2.03a.314.314 0 0 0-.31.318V15.06c0 .176.14.319.31.319h2.03c.17 0 .31-.143.31-.319v-4.88h5.348v4.88c0 .176.14.319.31.319h2.03c.171 0 .31-.143.31-.319V2.923a.314.314 0 0 0-.31-.318h-2.03a.314.314 0 0 0-.306.318zM30.605 4.225C29.197 1.615 26.442-.01 23.446 0H.778a.78.78 0 0 0-.716.478.763.763 0 0 0 .168.836l4.938 4.9c.436.434 1.03.677 1.648.677h15.98c1.139-.012 2.07.89 2.082 2.013s-.901 2.043-2.04 2.054H11.821a.78.78 0 0 0-.718.476.763.763 0 0 0 .167.838l4.941 4.904a2.34 2.34 0 0 0 1.648.676h4.983c6.483 0 11.385-6.84 7.763-13.63"
+ fill="#ff3008"
+ />
+ </svg>
</a>
-
+
{/* <a
target="_blank"
rel="noopener noreferrer"
diff --git a/components/welcome/containers/link-option-container.tsx b/components/welcome/containers/link-option-container.tsx
index 030d8b20..b67b9e7a 100644
--- a/components/welcome/containers/link-option-container.tsx
+++ b/components/welcome/containers/link-option-container.tsx
@@ -7,13 +7,6 @@ import { LinkType } from "@prisma/client";
import { motion } from "motion/react";
import { toast } from "sonner";
-import { DEFAULT_LINK_TYPE } from "@/components/links/link-sheet";
-import { OnboardingLinkOptions } from "@/components/welcome/containers/onboarding-link-options";
-import { OnboardingDataroomLinkOptions } from "@/components/welcome/containers/onboarding-dataroom-link-options";
-import { Button } from "@/components/ui/button";
-import { Switch } from "@/components/ui/switch";
-import { Label } from "@/components/ui/label";
-
import { STAGGER_CHILD_VARIANTS } from "@/lib/constants";
import {
convertDataUrlToFile,
@@ -21,6 +14,13 @@ import {
uploadImage,
} from "@/lib/utils";
+import { DEFAULT_LINK_TYPE } from "@/components/links/link-sheet";
+import { Button } from "@/components/ui/button";
+import { Label } from "@/components/ui/label";
+import { Switch } from "@/components/ui/switch";
+import { OnboardingDataroomLinkOptions } from "@/components/welcome/containers/onboarding-dataroom-link-options";
+import { OnboardingLinkOptions } from "@/components/welcome/containers/onboarding-link-options";
+
export function LinkOptionContainer({
currentLinkId,
currentDocId,
@@ -119,8 +119,8 @@ export function LinkOptionContainer({
>
<h1
className={
- `font-display text-3xl font-semibold text-foreground transition-colors sm:text-4xl mx-auto text-center ` +
- (showLinkSettings ? 'whitespace-nowrap' : 'max-w-md')
+ `font-display mx-auto text-center text-3xl font-semibold text-foreground transition-colors sm:text-4xl ` +
+ (showLinkSettings ? "whitespace-nowrap" : "max-w-md")
}
>
{showLinkSettings
diff --git a/components/welcome/containers/onboarding-dataroom-link-options.tsx b/components/welcome/containers/onboarding-dataroom-link-options.tsx
index 89b193f0..6c1c78e6 100644
--- a/components/welcome/containers/onboarding-dataroom-link-options.tsx
+++ b/components/welcome/containers/onboarding-dataroom-link-options.tsx
@@ -1,23 +1,24 @@
import { useState } from "react";
-import { LinkType, LinkPreset } from "@prisma/client";
+
+import { LinkPreset, LinkType } from "@prisma/client";
+
import { DEFAULT_LINK_TYPE } from "@/components/links/link-sheet";
+import AgreementSection from "@/components/links/link-sheet/agreement-section";
import AllowDownloadSection from "@/components/links/link-sheet/allow-download-section";
import AllowListSection from "@/components/links/link-sheet/allow-list-section";
import AllowNotificationSection from "@/components/links/link-sheet/allow-notification-section";
+import CustomFieldsSection from "@/components/links/link-sheet/custom-fields-section";
import DenyListSection from "@/components/links/link-sheet/deny-list-section";
+import EmailAuthenticationSection from "@/components/links/link-sheet/email-authentication-section";
import EmailProtectionSection from "@/components/links/link-sheet/email-protection-section";
import ExpirationSection from "@/components/links/link-sheet/expiration-section";
+import FeedbackSection from "@/components/links/link-sheet/feedback-section";
+import OGSection from "@/components/links/link-sheet/og-section";
import PasswordSection from "@/components/links/link-sheet/password-section";
+import { ProBannerSection } from "@/components/links/link-sheet/pro-banner-section";
+import QuestionSection from "@/components/links/link-sheet/question-section";
import ScreenshotProtectionSection from "@/components/links/link-sheet/screenshot-protection-section";
import WatermarkSection from "@/components/links/link-sheet/watermark-section";
-import AgreementSection from "@/components/links/link-sheet/agreement-section";
-import CustomFieldsSection from "@/components/links/link-sheet/custom-fields-section";
-import OGSection from "@/components/links/link-sheet/og-section";
-
-import FeedbackSection from "@/components/links/link-sheet/feedback-section";
-import QuestionSection from "@/components/links/link-sheet/question-section";
-
-import { ProBannerSection } from "@/components/links/link-sheet/pro-banner-section";
import ChevronDown from "@/components/shared/icons/chevron-down";
export const OnboardingDataroomLinkOptions = ({
@@ -37,11 +38,28 @@ export const OnboardingDataroomLinkOptions = ({
const alwaysShown = (
<>
<EmailProtectionSection {...{ data, setData }} />
+ <EmailAuthenticationSection
+ {...{ data, setData }}
+ isAllowed={true}
+ handleUpgradeStateChange={() => {}}
+ />
<AllowNotificationSection {...{ data, setData }} />
<AllowDownloadSection {...{ data, setData }} />
<PasswordSection {...{ data, setData }} />
- <AllowListSection data={data} setData={setData} isAllowed={true} handleUpgradeStateChange={() => {}} presets={currentPreset} />
- <DenyListSection data={data} setData={setData} isAllowed={true} handleUpgradeStateChange={() => {}} presets={currentPreset} />
+ <AllowListSection
+ data={data}
+ setData={setData}
+ isAllowed={true}
+ handleUpgradeStateChange={() => {}}
+ presets={currentPreset}
+ />
+ <DenyListSection
+ data={data}
+ setData={setData}
+ isAllowed={true}
+ handleUpgradeStateChange={() => {}}
+ presets={currentPreset}
+ />
<ScreenshotProtectionSection
data={data}
setData={setData}
@@ -68,15 +86,19 @@ export const OnboardingDataroomLinkOptions = ({
handleUpgradeStateChange={() => {}}
presets={currentPreset}
/>
- <div className="mt-2 mb-4">
+ <div className="mb-4 mt-2">
<button
type="button"
- className="flex w-full items-center justify-between text-sm text-muted-foreground hover:text-foreground transition-colors group"
+ className="group flex w-full items-center justify-between text-sm text-muted-foreground transition-colors hover:text-foreground"
onClick={() => setShowOtherSettings((v) => !v)}
aria-expanded={showOtherSettings}
>
- <span className="font-semibold text-sm text-gray-900">Other custom settings</span>
- <span className={`transition-transform ${showOtherSettings ? 'rotate-180' : ''}`}>
+ <span className="text-sm font-semibold text-gray-900">
+ Other custom settings
+ </span>
+ <span
+ className={`transition-transform ${showOtherSettings ? "rotate-180" : ""}`}
+ >
<ChevronDown className="h-4 w-4" />
</span>
</button>
@@ -96,7 +118,7 @@ export const OnboardingDataroomLinkOptions = ({
editLink={false}
presets={currentPreset}
/>
-
+
<FeedbackSection data={data} setData={setData} />
<QuestionSection
data={data}
@@ -104,7 +126,7 @@ export const OnboardingDataroomLinkOptions = ({
isAllowed={true}
handleUpgradeStateChange={() => {}}
/>
-
+
<ProBannerSection
data={data}
setData={setData}
@@ -120,4 +142,4 @@ export const OnboardingDataroomLinkOptions = ({
{showOtherSettings && otherSettings}
</div>
);
-};
\ No newline at end of file
+};
diff --git a/components/welcome/containers/onboarding-link-options.tsx b/components/welcome/containers/onboarding-link-options.tsx
index 9bec5d8f..c729f77c 100644
--- a/components/welcome/containers/onboarding-link-options.tsx
+++ b/components/welcome/containers/onboarding-link-options.tsx
@@ -9,9 +9,12 @@ import useLimits from "@/lib/swr/use-limits";
import { UpgradePlanModal } from "@/components/billing/upgrade-plan-modal";
import { DEFAULT_LINK_TYPE } from "@/components/links/link-sheet";
+import AgreementSection from "@/components/links/link-sheet/agreement-section";
import AllowDownloadSection from "@/components/links/link-sheet/allow-download-section";
import AllowListSection from "@/components/links/link-sheet/allow-list-section";
import AllowNotificationSection from "@/components/links/link-sheet/allow-notification-section";
+import ConversationSection from "@/components/links/link-sheet/conversation-section";
+import CustomFieldsSection from "@/components/links/link-sheet/custom-fields-section";
import DenyListSection from "@/components/links/link-sheet/deny-list-section";
import EmailAuthenticationSection from "@/components/links/link-sheet/email-authentication-section";
import EmailProtectionSection from "@/components/links/link-sheet/email-protection-section";
@@ -20,10 +23,6 @@ import FeedbackSection from "@/components/links/link-sheet/feedback-section";
import OGSection from "@/components/links/link-sheet/og-section";
import PasswordSection from "@/components/links/link-sheet/password-section";
import { ProBannerSection } from "@/components/links/link-sheet/pro-banner-section";
-
-import AgreementSection from "@/components/links/link-sheet/agreement-section";
-import ConversationSection from "@/components/links/link-sheet/conversation-section";
-import CustomFieldsSection from "@/components/links/link-sheet/custom-fields-section";
import QuestionSection from "@/components/links/link-sheet/question-section";
import ScreenshotProtectionSection from "@/components/links/link-sheet/screenshot-protection-section";
import UploadSection from "@/components/links/link-sheet/upload-section";
@@ -68,7 +67,8 @@ export const OnboardingLinkOptions = ({
const [openUpgradeModal, setOpenUpgradeModal] = useState<boolean>(false);
const [trigger, setTrigger] = useState<string>("");
const [upgradePlan, setUpgradePlan] = useState<PlanEnum>(PlanEnum.Business);
- const [showAdvancedSettings, setShowAdvancedSettings] = useState<boolean>(false);
+ const [showAdvancedSettings, setShowAdvancedSettings] =
+ useState<boolean>(false);
const handleUpgradeStateChange = ({
state,
@@ -92,15 +92,19 @@ export const OnboardingLinkOptions = ({
<PasswordSection {...{ data, setData }} />
{/* Advanced toggle for documents only */}
{linkType === LinkType.DOCUMENT_LINK && (
- <div className="mt-2 mb-4">
+ <div className="mb-4 mt-2">
<button
type="button"
- className="flex w-full items-center justify-between text-sm text-muted-foreground hover:text-foreground transition-colors group"
+ className="group flex w-full items-center justify-between text-sm text-muted-foreground transition-colors hover:text-foreground"
onClick={() => setShowAdvancedSettings((v) => !v)}
aria-expanded={showAdvancedSettings}
>
- <span className="font-semibold text-sm text-gray-900">Advanced settings</span>
- <span className={`transition-transform ${showAdvancedSettings ? 'rotate-180' : ''}`}>
+ <span className="text-sm font-semibold text-gray-900">
+ Advanced settings
+ </span>
+ <span
+ className={`transition-transform ${showAdvancedSettings ? "rotate-180" : ""}`}
+ >
<ChevronDown className="h-4 w-4" />
</span>
</button>
@@ -262,4 +266,4 @@ export const OnboardingLinkOptions = ({
/>
</div>
);
-};
\ No newline at end of file
+};
diff --git a/components/welcome/containers/upload-container.tsx b/components/welcome/containers/upload-container.tsx
index 97d64569..5fcf50dd 100644
--- a/components/welcome/containers/upload-container.tsx
+++ b/components/welcome/containers/upload-container.tsx
@@ -6,15 +6,15 @@ import { useTeam } from "@/context/team-context";
import { motion } from "motion/react";
import { toast } from "sonner";
-import DocumentUpload from "@/components/document-upload";
-import { Button } from "@/components/ui/button";
-
import { useAnalytics } from "@/lib/analytics";
import { STAGGER_CHILD_VARIANTS } from "@/lib/constants";
import { DocumentData, createDocument } from "@/lib/documents/create-document";
import { putFile } from "@/lib/files/put-file";
import { getSupportedContentType } from "@/lib/utils/get-content-type";
+import DocumentUpload from "@/components/document-upload";
+import { Button } from "@/components/ui/button";
+
export function UploadContainer({
currentFile,
setCurrentFile,
diff --git a/components/welcome/dataroom-trial.tsx b/components/welcome/dataroom-trial.tsx
index f6f28cef..8d7451df 100644
--- a/components/welcome/dataroom-trial.tsx
+++ b/components/welcome/dataroom-trial.tsx
@@ -9,6 +9,9 @@ import { motion } from "motion/react";
import { toast } from "sonner";
import { mutate } from "swr";
+import { useAnalytics } from "@/lib/analytics";
+import { STAGGER_CHILD_VARIANTS } from "@/lib/constants";
+
import { Button } from "@/components/ui/button";
import { Label } from "@/components/ui/label";
import { PhoneInput } from "@/components/ui/phone-input";
@@ -20,9 +23,6 @@ import {
SelectValue,
} from "@/components/ui/select";
-import { useAnalytics } from "@/lib/analytics";
-import { STAGGER_CHILD_VARIANTS } from "@/lib/constants";
-
import { UpgradePlanModal } from "../billing/upgrade-plan-modal";
import { Input } from "../ui/input";
@@ -63,7 +63,7 @@ export default function DataroomTrial() {
name: "Dataroom #1",
fullName: name,
companyName,
- useCase,
+ useCase: useCase === "other" ? customUseCase.trim() : useCase,
companySize,
tools,
}),
@@ -85,7 +85,7 @@ export default function DataroomTrial() {
analytics.capture("Dataroom Trial Created", {
dataroomName: "Dataroom #1",
- useCase,
+ useCase: useCase === "other" ? customUseCase.trim() : useCase,
companySize,
dataroomId,
});
@@ -195,7 +195,7 @@ export default function DataroomTrial() {
</SelectContent>
</Select>
</div> */}
- <div className="space-y-1">
+ <div className="space-y-1">
<Label className="opacity-80">Company Size*</Label>
<Select onValueChange={(value) => setCompanySize(value)}>
<SelectTrigger>
@@ -230,11 +230,19 @@ export default function DataroomTrial() {
<SelectValue placeholder="Select your use case" />
</SelectTrigger>
<SelectContent>
- <SelectItem value="m&a">Mergers and Acquisitions</SelectItem>
- <SelectItem value="startup-fundraising">Startup Fundraising</SelectItem>
- <SelectItem value="fund-management">Fund management & Fundraising</SelectItem>
+ <SelectItem value="mergers-and-acquisitions">
+ Mergers and Acquisitions
+ </SelectItem>
+ <SelectItem value="startup-fundraising">
+ Startup Fundraising
+ </SelectItem>
+ <SelectItem value="fund-management">
+ Fund management & Fundraising
+ </SelectItem>
<SelectItem value="sales">Sales</SelectItem>
- <SelectItem value="project-management">Project management</SelectItem>
+ <SelectItem value="project-management">
+ Project management
+ </SelectItem>
<SelectItem value="operations">Operations</SelectItem>
<SelectItem value="other">Other</SelectItem>
@@ -243,14 +251,14 @@ export default function DataroomTrial() {
{useCase === "other" && (
<input
type="text"
- className="mt-2 w-full rounded border border-gray-300 px-3 py-2 text-sm "
+ className="mt-2 w-full rounded border border-gray-300 px-3 py-2 text-sm"
placeholder="Please specify your use case"
value={customUseCase}
onChange={(e) => setCustomUseCase(e.target.value)}
/>
)}
</div>
-
+
<div className="space-y-1">
<Label htmlFor="tools" className="opacity-80">
Tools*
diff --git a/components/welcome/dataroom.tsx b/components/welcome/dataroom.tsx
index 7cb8b660..c1d2af98 100644
--- a/components/welcome/dataroom.tsx
+++ b/components/welcome/dataroom.tsx
@@ -1,11 +1,9 @@
import { useRouter } from "next/router";
-import { File as DocumentIcon, ServerIcon } from "lucide-react";
import { motion } from "motion/react";
import { STAGGER_CHILD_VARIANTS } from "@/lib/constants";
-import { DataroomTrialModal } from "../datarooms/dataroom-trial-modal";
import { Button } from "../ui/button";
export default function Dataroom() {
@@ -36,7 +34,7 @@ export default function Dataroom() {
Papermark
</p>
<h1 className="font-display max-w-xl text-3xl font-semibold transition-colors sm:text-4xl">
- Get started with data rooms!
+ Get started with data rooms!
</h1>
</motion.div>
<motion.div
diff --git a/components/welcome/notion-form.tsx b/components/welcome/notion-form.tsx
index 42acd957..a1d2d218 100644
--- a/components/welcome/notion-form.tsx
+++ b/components/welcome/notion-form.tsx
@@ -1,6 +1,6 @@
import { useRouter } from "next/router";
-import { type FormEvent, use, useState } from "react";
+import { type FormEvent, useState } from "react";
import { useTeam } from "@/context/team-context";
import { LinkType } from "@prisma/client";
@@ -9,6 +9,14 @@ import { usePlausible } from "next-plausible";
import { parsePageId } from "notion-utils";
import { toast } from "sonner";
+import { useAnalytics } from "@/lib/analytics";
+import { STAGGER_CHILD_VARIANTS } from "@/lib/constants";
+import {
+ convertDataUrlToFile,
+ copyToClipboard,
+ uploadImage,
+} from "@/lib/utils";
+
import {
DEFAULT_LINK_PROPS,
DEFAULT_LINK_TYPE,
@@ -23,14 +31,6 @@ import {
import { Button } from "@/components/ui/button";
import { Label } from "@/components/ui/label";
-import { useAnalytics } from "@/lib/analytics";
-import { STAGGER_CHILD_VARIANTS } from "@/lib/constants";
-import {
- convertDataUrlToFile,
- copyToClipboard,
- uploadImage,
-} from "@/lib/utils";
-
import Skeleton from "../Skeleton";
export default function NotionForm() {
@@ -343,9 +343,9 @@ export default function NotionForm() {
<Button loading={isLoading} onClick={handleSubmit}>
Share document link
</Button>
- </div>
- <div className="text-center text-xs text-muted-foreground">
- <span>You can change configurations later</span>
+ </div>
+ <div className="text-center text-xs text-muted-foreground">
+ <span>You can change configurations later</span>
</div>
</div>
</main>
diff --git a/components/welcome/select.tsx b/components/welcome/select.tsx
index dc717f20..110f16e8 100644
--- a/components/welcome/select.tsx
+++ b/components/welcome/select.tsx
@@ -3,10 +3,10 @@ import { useRouter } from "next/router";
import { FileChartPieIcon, FileIcon, PresentationIcon } from "lucide-react";
import { motion } from "motion/react";
-import NotionIcon from "@/components/shared/icons/files/notion";
-
import { STAGGER_CHILD_VARIANTS } from "@/lib/constants";
+import NotionIcon from "@/components/shared/icons/files/notion";
+
export default function Next() {
const router = useRouter();
return (
diff --git a/next.config.mjs b/next.config.mjs
index 2b925e1b..3da0a211 100644
--- a/next.config.mjs
+++ b/next.config.mjs
@@ -117,21 +117,21 @@ const nextConfig = {
},
],
},
- // {
- // source: "/services/:path*",
- // has: [
- // {
- // type: "host",
- // value: process.env.NEXT_PUBLIC_WEBHOOK_BASE_HOST,
- // },
- // ],
- // headers: [
- // {
- // key: "X-Robots-Tag",
- // value: "noindex",
- // },
- // ],
- // },
+ {
+ source: "/services/:path*",
+ has: [
+ {
+ type: "host",
+ value: process.env.NEXT_PUBLIC_WEBHOOK_BASE_HOST,
+ },
+ ],
+ headers: [
+ {
+ key: "X-Robots-Tag",
+ value: "noindex",
+ },
+ ],
+ },
{
source: "/api/webhooks/services/:path*",
headers: [