Update switches
This commit is contained in:
@@ -1,15 +1,14 @@
|
||||
import type { MattrixwvSwitchProps } from "$/types/InputTypes";
|
||||
import clsx from "clsx";
|
||||
import { forwardRef } from "react";
|
||||
import MattrixwvSwitch from "./MattrixwvSwitch";
|
||||
|
||||
|
||||
const SuccessSwitch = forwardRef<HTMLButtonElement, MattrixwvSwitchProps>(({
|
||||
export default function SuccessSwitch({
|
||||
className,
|
||||
knobClassName,
|
||||
disabled,
|
||||
...props
|
||||
}, ref ) => {
|
||||
}: Readonly<MattrixwvSwitchProps>){
|
||||
return (
|
||||
<MattrixwvSwitch
|
||||
className={clsx(
|
||||
@@ -28,12 +27,7 @@ const SuccessSwitch = forwardRef<HTMLButtonElement, MattrixwvSwitchProps>(({
|
||||
}
|
||||
)}
|
||||
disabled={disabled}
|
||||
ref={ref}
|
||||
{...props}
|
||||
/>
|
||||
);
|
||||
});
|
||||
|
||||
SuccessSwitch.displayName = "SuccessSwitch";
|
||||
|
||||
export default SuccessSwitch;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user