-
Notifications
You must be signed in to change notification settings - Fork 24
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
feat: improve wheel #560
Conversation
There was a problem hiding this 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() :)
layout/Attendee/Wheel/Wheel.tsx
Outdated
/> | ||
); | ||
} else { | ||
//TODO:: CHANGE THIS MESSAGE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
//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> |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
Resolves #535
Resolves #536