Skip to content

Commit

Permalink
feat: disable button when wheel is spinning
Browse files Browse the repository at this point in the history
  • Loading branch information
joaodiaslobo committed Oct 26, 2023
1 parent 3117824 commit 8fdb824
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions layout/Attendee/Wheel/Wheel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -192,15 +192,15 @@ function WheelPage() {
</div>
<button
className={`${
canSpin()
canSpin() && !isSpinning
? "cursor-pointer bg-quinary"
: "bg-gray-400 opacity-50"
} m-auto mt-10 block h-20 w-64 rounded-full`}
disabled={!canSpin() || isSpinning}
onClick={spinTheWheel}
>
<p className="font-ibold font-bold">SPIN THE WHEEL</p>
<p className="font-iregular">20 tokens💰</p>
<p className="select-none font-ibold font-bold">SPIN THE WHEEL</p>
<p className="select-none font-iregular">20 tokens💰</p>
</button>
</div>
</div>
Expand Down

0 comments on commit 8fdb824

Please sign in to comment.