Skip to content

Commit

Permalink
fix(app-components): update role to type
Browse files Browse the repository at this point in the history
  • Loading branch information
rams23 committed Jan 16, 2021
1 parent 4f9efa4 commit 6f936b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/game-app/src/_shared/components/Button/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ const StyledButton = styled('button')<{ variant: Variants }>`

const Button: React.FC<Props> = ({ variant = 'default', label, onClick, id, disabled, hoverLabel }) => {
return (
<StyledButton role="button" id={id} disabled={disabled} onClick={onClick} variant={variant}>
<StyledButton type="button" id={id} disabled={disabled} onClick={onClick} variant={variant}>
{label}
<HoverButton>
<HoverButtonContent>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const StyledButton = styled.button`

const IconButton: React.FC<Props> = ({ children, onClick }) => {
return (
<StyledButton role="button" onClick={onClick}>
<StyledButton type="button" onClick={onClick}>
{children}
</StyledButton>
);
Expand Down

0 comments on commit 6f936b7

Please sign in to comment.