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