-
Notifications
You must be signed in to change notification settings - Fork 17
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
Staking UI #128
Staking UI #128
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/da0da0/dao-dao/CRUivbphAbahpXdnM1hzBWevnaEj |
18d6df0
to
cd27716
Compare
cd27716
to
44391c8
Compare
<div className="card bordered shadow-lg card-side m-2 inline-flex"> | ||
<div className="card-body py-6"> | ||
<h2 className="card-title"> | ||
{title} <HelpTooltip text={tooltip} /> |
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.
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.
Fixed! You have to make sure the card or container has overflow-visible
stake, | ||
stakedBalance, | ||
unstake, | ||
} = useStaking(daoInfo?.gov_token as string) |
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.
Playing around with this it seems like staking / unstaking won't trigger this state to be updated. I don't think this is something that needs to block the PR but something to note. Not even sure how you'd tell react that pressing that button should cause this hook to be re run..
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.
Perhaps @ebaker or @gavindoughtie would know how to do that?
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.
I thought about this too... it's not ideal and I don't expect it to last long.
Why I think we should ship this now:
- Will soon have lots of examples and patterns for using recoil (can just wait until those are ready)
- Allows us to update the contracts on Juno Testnet (which are out of date and lead to some frontend bugs)
- Sidebar / 3 column layout is coming... really want some of this to potentially live there
Ideally, when you're visiting a DAO, it shows how many DAO tokens you have and how many are staked in the third column.
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.
Great , am also looking forward to learning more about recoil to hopefully fix these kinds of issues :)
Adds UI for staking gov tokens. This is needed to support the newest version of the DAO contracts.