Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
chore: refactors
Marc Seitzd52a83d83f89
diff --git a/components/agreements/agreement-card.tsx b/components/agreements/agreement-card.tsxindex cb040fb1..8eb9f0c8 100644--- a/components/agreements/agreement-card.tsx+++ b/components/agreements/agreement-card.tsx@@ -1,4 +1,4 @@-import { useEffect, useState } from "react";+import { useState } from "react";import { useTeam } from "@/context/team-context";import { FileTextIcon, MoreVertical, TrashIcon } from "lucide-react";@@ -24,14 +24,6 @@ import {DropdownMenuTrigger,} from "@/components/ui/dropdown-menu";-interface Agreement {- id: string;- name: string;- content: string;- createdAt: Date;- updatedAt: Date;-}-interface AgreementCardProps {agreement: AgreementWithLinksCount;onDelete: (id: string) => void;@@ -82,7 +74,8 @@ export default function AgreementCard({<div className="flex items-center gap-x-2"><div className="text-sm text-muted-foreground">- {agreement._count?.links || 0} links+ {agreement._count?.links || 0}{" "}+ {agreement._count?.links === 1 ? "link" : "links"}</div><DropdownMenu><DropdownMenuTrigger asChild>