Skip to content

Commit

Permalink
Set default type of Button component to "button" (#1010)
Browse files Browse the repository at this point in the history
  • Loading branch information
bayasdev authored Oct 3, 2024
1 parent f9aca28 commit 863846c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/Button/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ const CustomButton = styled.button<
const Button: FC<
ButtonProps & React.ButtonHTMLAttributes<HTMLButtonElement>
> = ({
type = "button",
label,
variant = "secondary",
icon,
Expand Down Expand Up @@ -205,6 +206,7 @@ const Button: FC<

return (
<CustomButton
type={type}
onClick={onClick}
disabled={disabled || false}
variant={variant || "secondary"}
Expand Down

0 comments on commit 863846c

Please sign in to comment.