diff --git a/src/components/ui/switch.tsx b/src/components/ui/switch.tsx index 4c11c0f..81e8155 100644 --- a/src/components/ui/switch.tsx +++ b/src/components/ui/switch.tsx @@ -3,7 +3,8 @@ import * as React from "react"; import { cn } from "@/lib/utils"; -interface SwitchProps extends Omit, "type" | "role" | "aria-checked"> { +interface SwitchProps + extends Omit, "type" | "role" | "aria-checked"> { onCheckedChange?: (checked: boolean) => void; } @@ -33,10 +34,12 @@ const Switch = React.forwardRef( aria-checked={checked ?? defaultChecked ?? false} {...props} /> - + ); }