Update button components
This commit is contained in:
@@ -1,10 +1,9 @@
|
||||
import type { ButtonProps } from "$/types/ButtonTypes";
|
||||
import clsx from "clsx";
|
||||
import { forwardRef } from "react";
|
||||
|
||||
|
||||
|
||||
const Button = forwardRef<HTMLButtonElement, ButtonProps>(({
|
||||
export default function Button({
|
||||
className,
|
||||
type="button",
|
||||
rounding = "lg",
|
||||
@@ -13,11 +12,10 @@ const Button = forwardRef<HTMLButtonElement, ButtonProps>(({
|
||||
variant = "standard",
|
||||
disabled,
|
||||
...buttonProps
|
||||
}, ref ) => {
|
||||
}: Readonly<ButtonProps>){
|
||||
return (
|
||||
<button
|
||||
data-testid="mattrixwv-button"
|
||||
ref={ref}
|
||||
type={type}
|
||||
disabled={disabled}
|
||||
className={clsx(
|
||||
@@ -59,8 +57,4 @@ const Button = forwardRef<HTMLButtonElement, ButtonProps>(({
|
||||
{...buttonProps}
|
||||
/>
|
||||
);
|
||||
});
|
||||
|
||||
Button.displayName = "Button";
|
||||
|
||||
export default Button;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user