Skip to content

Commit

Permalink
clean up button
Browse files Browse the repository at this point in the history
  • Loading branch information
myix765 committed Nov 3, 2024
1 parent e620a6c commit 37d64dd
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/components/Button.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,10 @@ import React from 'react';
const Button = ({ isOutline, label }) => {
return (
<button
className={`px-4 py-2 font-semibold rounded-lg transition-colors duration-300 ${
isOutline
// when isOutline is true
? 'border border-blue-500 text-black-500 bg-transparent hover:text-white'
// when isOutline is false
: 'bg-white text-black hover:bg-blue-700'
}`}
className={`px-4 py-2 font-semibold rounded-lg transition-colors duration-300 ${isOutline
? 'border border-blue-500 text-black-500 bg-white'
: 'bg-blue-700 text-black'
}`}
>
{label}
</button>
Expand Down

0 comments on commit 37d64dd

Please sign in to comment.