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 SuccessDangerSwitch = forwardRef<HTMLButtonElement, MattrixwvSwitchProps>(({
|
||||
export default function SuccessDangerSwitch({
|
||||
className,
|
||||
knobClassName,
|
||||
disabled,
|
||||
...props
|
||||
}, ref ) => {
|
||||
}: Readonly<MattrixwvSwitchProps>){
|
||||
return (
|
||||
<MattrixwvSwitch
|
||||
className={clsx(
|
||||
@@ -27,12 +26,7 @@ const SuccessDangerSwitch = forwardRef<HTMLButtonElement, MattrixwvSwitchProps>(
|
||||
}
|
||||
)}
|
||||
disabled={disabled}
|
||||
ref={ref}
|
||||
{...props}
|
||||
/>
|
||||
);
|
||||
});
|
||||
|
||||
SuccessDangerSwitch.displayName = "SuccessDangerSwitch";
|
||||
|
||||
export default SuccessDangerSwitch;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user