From 66668d85d603c5841d755a6023aa1925559fc6d4 Mon Sep 17 00:00:00 2001 From: 苏向夜 Date: Wed, 25 Feb 2026 01:32:51 +0800 Subject: chore(workspace): replace legacy codes --- packages/ui-new/src/components/ui/switch.tsx | 32 ---------------------------- 1 file changed, 32 deletions(-) delete mode 100644 packages/ui-new/src/components/ui/switch.tsx (limited to 'packages/ui-new/src/components/ui/switch.tsx') diff --git a/packages/ui-new/src/components/ui/switch.tsx b/packages/ui-new/src/components/ui/switch.tsx deleted file mode 100644 index fef14e3..0000000 --- a/packages/ui-new/src/components/ui/switch.tsx +++ /dev/null @@ -1,32 +0,0 @@ -"use client"; - -import { Switch as SwitchPrimitive } from "@base-ui/react/switch"; - -import { cn } from "@/lib/utils"; - -function Switch({ - className, - size = "default", - ...props -}: SwitchPrimitive.Root.Props & { - size?: "sm" | "default"; -}) { - return ( - - - - ); -} - -export { Switch }; -- cgit v1.2.3-70-g09d2