Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
chore: move link-sheet to folder
Marc Seitz4d26312bb1e3
diff --git a/components/links/email-protection-section.tsx b/components/links/link-sheet/email-protection-section.tsxsimilarity index 95%rename from components/links/email-protection-section.tsxrename to components/links/link-sheet/email-protection-section.tsxindex 44cc288c..5add1fb5 100644--- a/components/links/email-protection-section.tsx+++ b/components/links/link-sheet/email-protection-section.tsx@@ -1,7 +1,7 @@import { Dispatch, SetStateAction, useState } from "react";import { Switch } from "@/components/ui/switch";import { cn } from "@/lib/utils";-import { DEFAULT_LINK_TYPE } from "./link-sheet";+import { DEFAULT_LINK_TYPE } from ".";diff --git a/components/links/expiration-section.tsx b/components/links/link-sheet/expiration-section.tsxsimilarity index 97%rename from components/links/expiration-section.tsxrename to components/links/link-sheet/expiration-section.tsxindex b624c034..1c4ffb23 100644--- a/components/links/expiration-section.tsx+++ b/components/links/link-sheet/expiration-section.tsx@@ -3,7 +3,7 @@ import { Switch } from "@/components/ui/switch";import { motion } from "framer-motion";import { FADE_IN_ANIMATION_SETTINGS } from "@/lib/contants";import { cn, getDateTimeLocal } from "@/lib/utils";-import { DEFAULT_LINK_TYPE } from "./link-sheet";+import { DEFAULT_LINK_TYPE } from ".";diff --git a/components/links/link-sheet.tsx b/components/links/link-sheet/index.tsxsimilarity index 95%rename from components/links/link-sheet.tsxrename to components/links/link-sheet/index.tsxindex 0e98a83c..2c5dd0a4 100644--- a/components/links/link-sheet.tsx+++ b/components/links/link-sheet/index.tsx@@ -104,7 +104,7 @@ export default function LinkSheet({ children }: { children: React.ReactNode }) {id="link-name"placeholder="Recipient's Organization"value={data.name || ''}- className="block w-full rounded-md border-0 px-2 py-1.5 text-white bg-black shadow-sm ring-1 ring-inset ring-gray-600 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-gray-300 sm:text-sm sm:leading-6"+ className="flex w-full rounded-md border-0 py-1.5 text-white bg-black shadow-sm ring-1 ring-inset ring-gray-600 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-gray-300 sm:text-sm sm:leading-6"onChange={(e) =>setData({ ...data, name: e.target.value })}diff --git a/components/links/password-section.tsx b/components/links/link-sheet/password-section.tsxsimilarity index 97%rename from components/links/password-section.tsxrename to components/links/link-sheet/password-section.tsxindex 258a4bc6..1da4d8d7 100644--- a/components/links/password-section.tsx+++ b/components/links/link-sheet/password-section.tsx@@ -4,7 +4,7 @@ import { motion } from "framer-motion";import { FADE_IN_ANIMATION_SETTINGS } from "@/lib/contants";import Eye from "@/components/shared/icons/eye"import { cn } from "@/lib/utils";-import { DEFAULT_LINK_TYPE } from "./link-sheet";+import { DEFAULT_LINK_TYPE } from ".";diff --git a/components/links/links-container.tsx b/components/links/links-container.tsxindex ec84b081..c597925a 100644--- a/components/links/links-container.tsx+++ b/components/links/links-container.tsx@@ -104,11 +104,11 @@ export default function LinksContainer() {<tbody className="divide-y divide-white/5">{links ? (links.map((link) => (- <tr key={link.id}>+ <tr key={link.id} className="hover:bg-gray-800"><td className="py-4 pl-4 pr-8 sm:pl-6 lg:pl-8"><div className="flex items-center gap-x-4"><div className="truncate text-sm font-medium leading-6 text-white">- {link.id}+ {`https://localhost:3000/view/${link.id}`}</div><buttonclassName="text-gray-500 hover:text-gray-700"