From 35ca35c28a56e5c06bca875f95086a58e7661cf9 Mon Sep 17 00:00:00 2001 From: Sean O'Connor Date: Tue, 25 Nov 2025 02:01:16 -0500 Subject: [PATCH] Clean up unused imports and refactor type definitions - Remove unused `cn` import from theme-selector - Remove unused `Slot` import from badge - Remove unused `X` icon import from switch - Replace empty interface extends with type alias in input - Replace empty interface extends with type alias in textarea - Add "secondary" variant to button type props - Replace "brand" variant with "default" in client-list and invoice cards --- .../invoices/[id]/_components/pdf-download-button.tsx | 2 +- src/app/dashboard/settings/_components/theme-selector.tsx | 1 - src/components/data/client-list.tsx | 4 ++-- src/components/data/current-open-invoice-card.tsx | 4 ++-- src/components/forms/enhanced-send-invoice-button.tsx | 2 +- src/components/ui/badge.tsx | 1 - src/components/ui/input.tsx | 3 +-- src/components/ui/switch.tsx | 2 +- src/components/ui/textarea.tsx | 3 +-- 9 files changed, 9 insertions(+), 13 deletions(-) diff --git a/src/app/dashboard/invoices/[id]/_components/pdf-download-button.tsx b/src/app/dashboard/invoices/[id]/_components/pdf-download-button.tsx index 88cbf57..c9f4607 100644 --- a/src/app/dashboard/invoices/[id]/_components/pdf-download-button.tsx +++ b/src/app/dashboard/invoices/[id]/_components/pdf-download-button.tsx @@ -9,7 +9,7 @@ import { Download, Loader2 } from "lucide-react"; interface PDFDownloadButtonProps { invoiceId: string; - variant?: "default" | "outline" | "ghost" | "icon"; + variant?: "default" | "outline" | "ghost" | "icon" | "secondary"; className?: string; } diff --git a/src/app/dashboard/settings/_components/theme-selector.tsx b/src/app/dashboard/settings/_components/theme-selector.tsx index fafc1bb..b534933 100644 --- a/src/app/dashboard/settings/_components/theme-selector.tsx +++ b/src/app/dashboard/settings/_components/theme-selector.tsx @@ -9,7 +9,6 @@ import { DropdownMenuTrigger, } from "~/components/ui/dropdown-menu"; import { Button } from "~/components/ui/button"; -import { cn } from "~/lib/utils"; export function ThemeSelector() { const { theme, setTheme } = useTheme(); diff --git a/src/components/data/client-list.tsx b/src/components/data/client-list.tsx index b78c21d..37b1f6c 100644 --- a/src/components/data/client-list.tsx +++ b/src/components/data/client-list.tsx @@ -102,7 +102,7 @@ export function ClientList() { - @@ -131,7 +131,7 @@ export function ClientList() { - diff --git a/src/components/data/current-open-invoice-card.tsx b/src/components/data/current-open-invoice-card.tsx index d481e72..dcd7ae6 100644 --- a/src/components/data/current-open-invoice-card.tsx +++ b/src/components/data/current-open-invoice-card.tsx @@ -63,7 +63,7 @@ export function CurrentOpenInvoiceCard() { No open invoice found. Create a new invoice to start tracking your time.

- -