Update checkboxes
This commit is contained in:
@@ -1,14 +1,13 @@
|
||||
import type { CheckboxProps } from "$/types/InputTypes";
|
||||
import clsx from "clsx";
|
||||
import { forwardRef } from "react";
|
||||
import MattrixwvCheckbox from "./MattrixwvCheckbox";
|
||||
|
||||
|
||||
const DangerCheckbox = forwardRef<HTMLInputElement, CheckboxProps>(({
|
||||
export default function DangerCheckbox({
|
||||
className,
|
||||
showBox = true,
|
||||
...props
|
||||
}, ref) => {
|
||||
}: Readonly<CheckboxProps>){
|
||||
return (
|
||||
<MattrixwvCheckbox
|
||||
className={clsx(
|
||||
@@ -19,12 +18,7 @@ const DangerCheckbox = forwardRef<HTMLInputElement, CheckboxProps>(({
|
||||
}
|
||||
)}
|
||||
showBox={showBox}
|
||||
ref={ref}
|
||||
{...props}
|
||||
/>
|
||||
);
|
||||
});
|
||||
|
||||
DangerCheckbox.displayName = "DangerCheckbox";
|
||||
|
||||
export default DangerCheckbox;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user