Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
chore: cleanup
Marc Seitz49da2e32c1ee
diff --git a/app/(auth)/login/page-client.tsx b/app/(auth)/login/page-client.tsxindex d885032a..c48fd01f 100644--- a/app/(auth)/login/page-client.tsx+++ b/app/(auth)/login/page-client.tsx@@ -203,7 +203,7 @@ export default function Login() {By clicking continue, you acknowledge that you have read and agreeto Papermark's{" "}<a- href="https://www.papermark.com/terms"+ href={`${process.env.NEXT_PUBLIC_MARKETING_URL}/terms`}target="_blank"className="underline">@@ -211,7 +211,7 @@ export default function Login() {</a>{" "}and{" "}<a- href="https://www.papermark.com/privacy"+ href={`${process.env.NEXT_PUBLIC_MARKETING_URL}/privacy`}target="_blank"className="underline">diff --git a/app/(auth)/verify/invitation/page.tsx b/app/(auth)/verify/invitation/page.tsxindex 1779ec1e..45c3a517 100644--- a/app/(auth)/verify/invitation/page.tsx+++ b/app/(auth)/verify/invitation/page.tsx@@ -150,7 +150,7 @@ export default async function VerifyInvitationPage({By accepting this invitation, you acknowledge that you haveread and agree to Papermark's{" "}<a- href="https://www.papermark.com/terms"+ href={`${process.env.NEXT_PUBLIC_MARKETING_URL}/terms`}target="_blank"className="underline hover:text-gray-900">@@ -158,7 +158,7 @@ export default async function VerifyInvitationPage({</a>{" "}and{" "}<a- href="https://www.papermark.com/privacy"+ href={`${process.env.NEXT_PUBLIC_MARKETING_URL}/privacy`}target="_blank"className="underline hover:text-gray-900">diff --git a/app/(auth)/verify/page.tsx b/app/(auth)/verify/page.tsxindex 0bb50fd1..367ad9ac 100644--- a/app/(auth)/verify/page.tsx+++ b/app/(auth)/verify/page.tsx@@ -100,7 +100,7 @@ export default function VerifyPage({By clicking continue, you acknowledge that you have read and agreeto Papermark's{" "}<a- href="https://www.papermark.com/terms"+ href={`${process.env.NEXT_PUBLIC_MARKETING_URL}/terms`}target="_blank"className="underline hover:text-gray-900">@@ -108,7 +108,7 @@ export default function VerifyPage({</a>{" "}and{" "}<a- href="https://www.papermark.com/privacy"+ href={`${process.env.NEXT_PUBLIC_MARKETING_URL}/privacy`}target="_blank"className="underline hover:text-gray-900">@@ -157,4 +157,4 @@ export default function VerifyPage({</div></div>);-};\ No newline at end of file+}diff --git a/components/sidebar/app-sidebar.tsx b/components/sidebar/app-sidebar.tsxindex 081d68b8..9860f656 100644--- a/components/sidebar/app-sidebar.tsx+++ b/components/sidebar/app-sidebar.tsx@@ -20,6 +20,10 @@ import {ServerIcon,} from "lucide-react";+import { usePlan } from "@/lib/swr/use-billing";+import useLimits from "@/lib/swr/use-limits";+import { nFormatter } from "@/lib/utils";+import { NavMain } from "@/components/sidebar/nav-main";import { NavUser } from "@/components/sidebar/nav-user";import { TeamSwitcher } from "@/components/sidebar/team-switcher";@@ -32,10 +36,6 @@ import {SidebarMenuItem,} from "@/components/ui/sidebar";-import { usePlan } from "@/lib/swr/use-billing";-import useLimits from "@/lib/swr/use-limits";-import { nFormatter } from "@/lib/utils";-import ProAnnualBanner from "../billing/pro-annual-banner";import ProBanner from "../billing/pro-banner";import { Progress } from "../ui/progress";diff --git a/components/teams/select-team.tsx b/components/teams/select-team.tsxindex b6126727..67eba437 100644--- a/components/teams/select-team.tsx+++ b/components/teams/select-team.tsx@@ -5,6 +5,9 @@ import { TeamContextType, useTeam } from "@/context/team-context";import { Check, Loader, PlusIcon } from "lucide-react";import { ChevronsUpDown as ChevronUpDownIcon } from "lucide-react";+import { Team } from "@/lib/types";+import { cn } from "@/lib/utils";+import { Avatar, AvatarFallback } from "@/components/ui/avatar";import {DropdownMenu,@@ -12,9 +15,6 @@ import {DropdownMenuTrigger,} from "@/components/ui/dropdown-menu";-import { Team } from "@/lib/types";-import { cn } from "@/lib/utils";-const SelectTeam = ({ teams, currentTeam, isLoading }: TeamContextType) => {const router = useRouter();const userTeam = useTeam();diff --git a/components/view/visitor-graph.tsx b/components/view/visitor-graph.tsxindex 74ce783f..a5c128fa 100644--- a/components/view/visitor-graph.tsx+++ b/components/view/visitor-graph.tsx@@ -192,11 +192,19 @@ export default function ViewDurationSummary({<p className="mt-4 w-full max-w-md px-4 text-xs text-muted-foreground sm:px-16">By clicking continue, you acknowledge that you have read and agreeto Papermark's{" "}- <Link href="/terms" target="_blank" className="underline hover:text-gray-900">+ <Link+ href={`${process.env.NEXT_PUBLIC_MARKETING_URL}/terms`}+ target="_blank"+ className="underline hover:text-gray-900"+ >Terms of Service</Link>{" "}and{" "}- <Link href="/privacy" target="_blank" className="underline hover:text-gray-900">+ <Link+ href={`${process.env.NEXT_PUBLIC_MARKETING_URL}/privacy`}+ target="_blank"+ className="underline hover:text-gray-900"+ >Privacy Policy</Link>.diff --git a/pages/welcome.tsx b/pages/welcome.tsxindex 27ec11d1..c71e0105 100644--- a/pages/welcome.tsx+++ b/pages/welcome.tsx@@ -6,6 +6,8 @@ import { useState } from "react";import { ArrowLeft as ArrowLeftIcon } from "lucide-react";import { AnimatePresence } from "motion/react";+import { cn } from "@/lib/utils";+import { Button } from "@/components/ui/button";import Dataroom from "@/components/welcome/dataroom";import DataroomTrial from "@/components/welcome/dataroom-trial";@@ -16,8 +18,6 @@ import NotionForm from "@/components/welcome/notion-form";import Select from "@/components/welcome/select";import Upload from "@/components/welcome/upload";-import { cn } from "@/lib/utils";-export default function Welcome() {const router = useRouter();const [showSkipButtons, setShowSkipButtons] = useState(false);