Skip to content

Commit

Permalink
fix: button inteface
Browse files Browse the repository at this point in the history
  • Loading branch information
jgleal committed Dec 20, 2023
1 parent acb3b28 commit 4ff1132
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/Button/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ import React from 'react'

import { StyledButton } from './Button.styles'

export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
size?: 'small' | 'large'
export interface ButtonProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
size?: 'small' | 'large';
}

export const Button: React.FC<ButtonProps> = ({ size, disabled, children, onClick, ...props }) => {
export const Button: React.FC<ButtonProps> = ({ size, children, onClick, ...props }) => {
return (
<StyledButton type="button" onClick={onClick} disabled={disabled} size={size} {...props}>
<StyledButton type="button" onClick={onClick} {...props}>
{children}
</StyledButton>
)
Expand Down

0 comments on commit 4ff1132

Please sign in to comment.