Update switches

This commit is contained in:
2026-02-14 17:04:16 -05:00
parent 1743ed6ce4
commit 31c44d3d92
13 changed files with 39 additions and 117 deletions

View File

@@ -1,15 +1,14 @@
import type { MattrixwvSwitchProps } from "$/types/InputTypes";
import clsx from "clsx";
import { forwardRef } from "react";
import MattrixwvSwitch from "./MattrixwvSwitch";
const WarningSwitch = forwardRef<HTMLButtonElement, MattrixwvSwitchProps>(({
export default function WarningSwitch({
className,
knobClassName,
disabled,
...props
}, ref ) => {
}: Readonly<MattrixwvSwitchProps>){
return (
<MattrixwvSwitch
className={clsx(
@@ -28,12 +27,7 @@ const WarningSwitch = forwardRef<HTMLButtonElement, MattrixwvSwitchProps>(({
}
)}
disabled={disabled}
ref={ref}
{...props}
/>
);
});
WarningSwitch.displayName = "WarningSwitch";
export default WarningSwitch;
}