diff --git a/frontend/components/ui/switch.tsx b/frontend/components/ui/switch.tsx index 90d25ae..022dff7 100644 --- a/frontend/components/ui/switch.tsx +++ b/frontend/components/ui/switch.tsx @@ -3,23 +3,38 @@ import * as React from "react" import { cn } from "@/lib/utils" -const Switch = React.forwardRef< - HTMLInputElement, - React.InputHTMLAttributes ->(({ className, ...props }, ref) => ( - -)) +interface SwitchProps extends Omit, 'onChange'> { + onCheckedChange?: (checked: boolean) => void +} + +const Switch = React.forwardRef( + ({ className, checked, onCheckedChange, disabled, ...props }, ref) => ( + + ) +) Switch.displayName = "Switch" export { Switch }