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
This commit is contained in:
2025-11-25 02:01:16 -05:00
parent 75ce36cf9c
commit 35ca35c28a
9 changed files with 9 additions and 13 deletions
-1
View File
@@ -1,5 +1,4 @@
import * as React from "react";
import { Slot } from "@radix-ui/react-slot";
import { cva, type VariantProps } from "class-variance-authority";
import { cn } from "~/lib/utils";
+1 -2
View File
@@ -1,8 +1,7 @@
import { cn } from "~/lib/utils";
import * as React from "react";
export interface InputProps
extends React.InputHTMLAttributes<HTMLInputElement> {}
export type InputProps = React.InputHTMLAttributes<HTMLInputElement>;
const Input = React.forwardRef<HTMLInputElement, InputProps>(
({ className, type, ...props }, ref) => {
+1 -1
View File
@@ -1,7 +1,7 @@
"use client";
import * as SwitchPrimitive from "@radix-ui/react-switch";
import { Check, X } from "lucide-react";
import { Check } from "lucide-react";
import * as React from "react";
import { cn } from "~/lib/utils";
+1 -2
View File
@@ -2,8 +2,7 @@ import * as React from "react";
import { cn } from "~/lib/utils";
export interface TextareaProps
extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {}
export type TextareaProps = React.TextareaHTMLAttributes<HTMLTextAreaElement>;
const Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(
({ className, ...props }, ref) => {