Skip to content

Commit

Permalink
refactor: Remove button tag in button component
Browse files Browse the repository at this point in the history
  • Loading branch information
phoenixpereira committed Dec 27, 2023
1 parent fdf6583 commit 96a5612
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/components/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,11 @@ const Button = ({ children, colour, href }: ButtonProps) => {

return (
<FancyRectangle colour="black" offset="4" filled={true}>
<a href={href}>
<button
className={`whitespace-nowrap py-4 px-12 md:py-1 md:px-2 lg:py-2 lg:px-6 border-2 border-black font-bold transition-colors duration-300 ${buttonColors[colour]}`}
>
{children}
</button>
<a
href={href}
className={`whitespace-nowrap py-4 px-12 md:py-1 md:px-2 lg:py-2 lg:px-6 border-2 border-black font-bold transition-colors duration-300 ${buttonColors[colour]}`}
>
{children}
</a>
</FancyRectangle>
);
Expand Down

0 comments on commit 96a5612

Please sign in to comment.