Skip to content

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

chore: cleanup

Marc Seitz42e9ab969e75
diff --git a/components/billing/upgrade-plan-modal.tsx b/components/billing/upgrade-plan-modal.tsx
index d7d9964e..fea30f51 100644
--- a/components/billing/upgrade-plan-modal.tsx
+++ b/components/billing/upgrade-plan-modal.tsx
@@ -5,24 +5,18 @@ import { useEffect, useMemo, useState } from "react";
import React from "react";
import { useTeam } from "@/context/team-context";
-import { motion } from "framer-motion";
import { CheckIcon } from "lucide-react";
import { Button } from "@/components/ui/button";
-import { Checkbox } from "@/components/ui/checkbox";
import { Dialog, DialogContent, DialogTrigger } from "@/components/ui/dialog";
import { Switch } from "@/components/ui/switch";
import { useAnalytics } from "@/lib/analytics";
-import { STAGGER_CHILD_VARIANTS } from "@/lib/constants";
import { getStripe } from "@/lib/stripe/client";
import { PLANS } from "@/lib/stripe/utils";
import { usePlan } from "@/lib/swr/use-billing";
import { capitalize } from "@/lib/utils";
-import { DataroomTrialModal } from "../datarooms/dataroom-trial-modal";
-import { Badge } from "../ui/badge";
-
export function UpgradePlanModal({
clickedPlan,
trigger,
@@ -37,17 +31,13 @@ export function UpgradePlanModal({
children?: React.ReactNode;
}) {
const router = useRouter();
- const [plan, setPlan] = useState<"Pro" | "Business" | "Data Rooms">(
- clickedPlan,
- );
+
const [period, setPeriod] = useState<"yearly" | "monthly">("yearly");
const [selectedPlan, setSelectedPlan] = useState<string | null>(null); // Track the clicked plan
const teamInfo = useTeam();
const { plan: teamPlan, trial, isCustomer, isOldAccount } = usePlan();
const analytics = useAnalytics();
- const isTrial = !!trial;
-
const planFeatures = useMemo(
() => ({
Pro: {