From 51222e00d1cf78781c98cb92e7900dd6d319c86e Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sat, 28 Nov 2026 16:32:16 -0600 Subject: [PATCH] Remove "use client" directives They are a React Server Components marker for Next.js and do nothing in a Vite app. --- src/components/ui/alert-dialog.tsx | 2 -- src/components/ui/aspect-ratio.tsx | 2 -- src/components/ui/calendar.tsx | 2 -- src/components/ui/chart.tsx | 2 -- src/components/ui/collapsible.tsx | 2 -- src/components/ui/dialog.tsx | 2 -- src/components/ui/dropdown-menu.tsx | 2 -- src/components/ui/input-otp.tsx | 2 -- src/components/ui/menubar.tsx | 2 -- src/components/ui/progress.tsx | 2 -- src/components/ui/resizable.tsx | 2 -- src/components/ui/select.tsx | 2 -- src/components/ui/sheet.tsx | 2 -- src/components/ui/sidebar.tsx | 2 -- src/components/ui/switch.tsx | 2 -- src/components/ui/tabs.tsx | 2 -- src/components/ui/toggle-group.tsx | 2 -- 17 files changed, 34 deletions(-) diff --git a/src/components/ui/alert-dialog.tsx b/src/components/ui/alert-dialog.tsx index dad3273..7e6c036 100644 --- a/src/components/ui/alert-dialog.tsx +++ b/src/components/ui/alert-dialog.tsx @@ -1,5 +1,3 @@ -"use client" - import * as React from "react" import { AlertDialog as AlertDialogPrimitive } from "radix-ui" diff --git a/src/components/ui/aspect-ratio.tsx b/src/components/ui/aspect-ratio.tsx index 57e38fa..ae5f48c 100644 --- a/src/components/ui/aspect-ratio.tsx +++ b/src/components/ui/aspect-ratio.tsx @@ -1,5 +1,3 @@ -"use client" - import { AspectRatio as AspectRatioPrimitive } from "radix-ui" function AspectRatio({ diff --git a/src/components/ui/calendar.tsx b/src/components/ui/calendar.tsx index 922153f..dd574a0 100644 --- a/src/components/ui/calendar.tsx +++ b/src/components/ui/calendar.tsx @@ -1,5 +1,3 @@ -"use client" - import * as React from "react" import { ChevronDownIcon, diff --git a/src/components/ui/chart.tsx b/src/components/ui/chart.tsx index 26bb9b7..d2afdab 100644 --- a/src/components/ui/chart.tsx +++ b/src/components/ui/chart.tsx @@ -1,5 +1,3 @@ -"use client" - import * as React from "react" import * as RechartsPrimitive from "recharts" import type { TooltipValueType } from "recharts" diff --git a/src/components/ui/collapsible.tsx b/src/components/ui/collapsible.tsx index 2f7a4e7..63fc8ef 100644 --- a/src/components/ui/collapsible.tsx +++ b/src/components/ui/collapsible.tsx @@ -1,5 +1,3 @@ -"use client" - import { Collapsible as CollapsiblePrimitive } from "radix-ui" function Collapsible({ diff --git a/src/components/ui/dialog.tsx b/src/components/ui/dialog.tsx index 84bdef4..e5f0a96 100644 --- a/src/components/ui/dialog.tsx +++ b/src/components/ui/dialog.tsx @@ -1,5 +1,3 @@ -"use client" - import * as React from "react" import { XIcon } from "lucide-react" import { Dialog as DialogPrimitive } from "radix-ui" diff --git a/src/components/ui/dropdown-menu.tsx b/src/components/ui/dropdown-menu.tsx index 0b46dfd..b3469c2 100644 --- a/src/components/ui/dropdown-menu.tsx +++ b/src/components/ui/dropdown-menu.tsx @@ -1,5 +1,3 @@ -"use client" - import * as React from "react" import { CheckIcon, ChevronRightIcon, CircleIcon } from "lucide-react" import { DropdownMenu as DropdownMenuPrimitive } from "radix-ui" diff --git a/src/components/ui/input-otp.tsx b/src/components/ui/input-otp.tsx index 6a556af..609266a 100644 --- a/src/components/ui/input-otp.tsx +++ b/src/components/ui/input-otp.tsx @@ -1,5 +1,3 @@ -"use client" - import * as React from "react" import { OTPInput, OTPInputContext } from "input-otp" import { MinusIcon } from "lucide-react" diff --git a/src/components/ui/menubar.tsx b/src/components/ui/menubar.tsx index d73fc3a..a7a1561 100644 --- a/src/components/ui/menubar.tsx +++ b/src/components/ui/menubar.tsx @@ -1,5 +1,3 @@ -"use client" - import * as React from "react" import { CheckIcon, ChevronRightIcon, CircleIcon } from "lucide-react" import { Menubar as MenubarPrimitive } from "radix-ui" diff --git a/src/components/ui/progress.tsx b/src/components/ui/progress.tsx index 5a0a5a6..af2ccf5 100644 --- a/src/components/ui/progress.tsx +++ b/src/components/ui/progress.tsx @@ -1,5 +1,3 @@ -"use client" - import * as React from "react" import { Progress as ProgressPrimitive } from "radix-ui" diff --git a/src/components/ui/resizable.tsx b/src/components/ui/resizable.tsx index a76832a..30443aa 100644 --- a/src/components/ui/resizable.tsx +++ b/src/components/ui/resizable.tsx @@ -1,5 +1,3 @@ -"use client" - import { GripVerticalIcon } from "lucide-react" import * as ResizablePrimitive from "react-resizable-panels" diff --git a/src/components/ui/select.tsx b/src/components/ui/select.tsx index 269c90b..2e07345 100644 --- a/src/components/ui/select.tsx +++ b/src/components/ui/select.tsx @@ -1,5 +1,3 @@ -"use client" - import * as React from "react" import { CheckIcon, ChevronDownIcon, ChevronUpIcon } from "lucide-react" import { Select as SelectPrimitive } from "radix-ui" diff --git a/src/components/ui/sheet.tsx b/src/components/ui/sheet.tsx index cb53bb2..dcfa2b4 100644 --- a/src/components/ui/sheet.tsx +++ b/src/components/ui/sheet.tsx @@ -1,5 +1,3 @@ -"use client" - import * as React from "react" import { XIcon } from "lucide-react" import { Dialog as SheetPrimitive } from "radix-ui" diff --git a/src/components/ui/sidebar.tsx b/src/components/ui/sidebar.tsx index 24f1306..f281616 100644 --- a/src/components/ui/sidebar.tsx +++ b/src/components/ui/sidebar.tsx @@ -1,5 +1,3 @@ -"use client" - import * as React from "react" import { type VariantProps } from "class-variance-authority" import { PanelLeftIcon } from "lucide-react" diff --git a/src/components/ui/switch.tsx b/src/components/ui/switch.tsx index 8baa844..dd2a617 100644 --- a/src/components/ui/switch.tsx +++ b/src/components/ui/switch.tsx @@ -1,5 +1,3 @@ -"use client" - import * as React from "react" import { Switch as SwitchPrimitive } from "radix-ui" diff --git a/src/components/ui/tabs.tsx b/src/components/ui/tabs.tsx index 3e36652..c692d0b 100644 --- a/src/components/ui/tabs.tsx +++ b/src/components/ui/tabs.tsx @@ -1,5 +1,3 @@ -"use client" - import * as React from "react" import { type VariantProps } from "class-variance-authority" import { Tabs as TabsPrimitive } from "radix-ui" diff --git a/src/components/ui/toggle-group.tsx b/src/components/ui/toggle-group.tsx index 686246f..a291460 100644 --- a/src/components/ui/toggle-group.tsx +++ b/src/components/ui/toggle-group.tsx @@ -1,5 +1,3 @@ -"use client" - import * as React from "react" import { type VariantProps } from "class-variance-authority" import { ToggleGroup as ToggleGroupPrimitive } from "radix-ui"