Skip to content

Commit

Permalink
fix: pass type prop to button
Browse files Browse the repository at this point in the history
  • Loading branch information
dnlkoch committed Oct 17, 2024
1 parent 45de0b3 commit 60270fd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Button/SimpleButton/SimpleButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ const SimpleButton: React.FC<SimpleButtonProps> = ({
tooltipProps = {
mouseEnterDelay: 1.5
},
children,
...passThroughProps
}) => {

Expand All @@ -50,9 +51,10 @@ const SimpleButton: React.FC<SimpleButtonProps> = ({
>
<Button
className={finalClassName}
type={type}
{...passThroughProps}
>
{passThroughProps.children}
{children}
</Button>
</Tooltip>
);
Expand Down

0 comments on commit 60270fd

Please sign in to comment.