Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: improve wheel #560

Merged
merged 5 commits into from
Oct 28, 2023
Merged

feat: improve wheel #560

merged 5 commits into from
Oct 28, 2023

Conversation

joaodiaslobo
Copy link
Member

@joaodiaslobo joaodiaslobo commented Oct 26, 2023

Resolves #535
Resolves #536

image

@joaodiaslobo joaodiaslobo self-assigned this Oct 26, 2023
@joaodiaslobo joaodiaslobo temporarily deployed to staging October 26, 2023 15:05 — with GitHub Actions Inactive
@joaodiaslobo joaodiaslobo temporarily deployed to staging October 26, 2023 15:10 — with GitHub Actions Inactive
@joaodiaslobo joaodiaslobo temporarily deployed to staging October 26, 2023 16:05 — with GitHub Actions Inactive
@joaodiaslobo joaodiaslobo changed the title feat: improve wheel design feat: improve wheel Oct 26, 2023
Copy link
Contributor

@tiago-bacelar tiago-bacelar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice. Since you're working on this though, could you pls do a couple extra things?

  • The time delay is implemented inside api.js and that is driving me nuts. Can you please pull it out into Wheel.tsx?
  • The token count is only updated after the 5 second delay. Could you also make it update before? Note that you can't run refetchUser, since that would already return any wins immediately, so instead you can just remove 20 tokens manually.

Also, you could have just put isSpinning inside canSpin() :)

@joaodiaslobo joaodiaslobo temporarily deployed to staging October 28, 2023 00:25 — with GitHub Actions Inactive
/>
);
} else {
//TODO:: CHANGE THIS MESSAGE
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
//TODO:: CHANGE THIS MESSAGE

<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>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This shouldn't be hardcoded but should be grapped from the safira environment, but do it in another PR

Copy link
Member

@MarioRodrigues10 MarioRodrigues10 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@joaodiaslobo joaodiaslobo merged commit a9db906 into main Oct 28, 2023
1 check passed
@joaodiaslobo joaodiaslobo deleted the jl/improve-wheel branch October 28, 2023 01:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Disable "Spin the Wheel" button when spinning Change wheel central icon
3 participants