Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
refactor: component name
Marc Seitz8d06e3b750de
diff --git a/components/links/links-table.tsx b/components/links/links-table.tsxindex a435aaac..b22de25f 100644--- a/components/links/links-table.tsx+++ b/components/links/links-table.tsx@@ -1,7 +1,5 @@import { useRouter } from "next/router";--import { useMemo, useRef, useState } from "react";import { useTeam } from "@/context/team-context";@@ -27,8 +25,6 @@ import { LinkWithViews, WatermarkConfig } from "@/lib/types";import { cn, copyToClipboard, fetcher, nFormatter, timeAgo } from "@/lib/utils";import { useMediaQuery } from "@/lib/utils/use-media-query";--import { UpgradePlanModal } from "@/components/billing/upgrade-plan-modal";import { Button } from "@/components/ui/button";import {@@ -58,15 +54,12 @@ import {TableRow,} from "@/components/ui/table";--import FileProcessStatusBar from "../documents/file-process-status-bar";import BarChart from "../shared/icons/bar-chart";import ChevronDown from "../shared/icons/chevron-down";import MoreHorizontal from "../shared/icons/more-horizontal";import { Badge } from "../ui/badge";import { ButtonTooltip } from "../ui/tooltip";-import PreviewButton from "./Preview";import EmbedCodeModal from "./embed-code-modal";import LinkActiveControls, {countActiveSettings,@@ -77,6 +70,7 @@ import LinkSheet, {} from "./link-sheet";import { TagColumn } from "./link-sheet/tags/tag-details";import LinksVisitors from "./links-visitors";+import { PreviewButton } from "./preview-button";const isDocumentProcessing = (version?: DocumentVersion) => {if (!version) return false;diff --git a/components/links/Preview.tsx b/components/links/preview-button.tsxsimilarity index 97%rename from components/links/Preview.tsxrename to components/links/preview-button.tsxindex aedbb977..0da03f84 100644--- a/components/links/Preview.tsx+++ b/components/links/preview-button.tsx@@ -41,4 +41,4 @@ const PreviewButton = ({);};-export default PreviewButton;+export { PreviewButton };