-
Notifications
You must be signed in to change notification settings - Fork 3
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
1 tx delegation #190
1 tx delegation #190
Conversation
Simplify track selection
Deploying delegit with Cloudflare Pages
|
onOpenChange={onOpenChange} | ||
callData={promptForHelpCallData} | ||
/> | ||
) | ||
|
||
return ( | ||
<Dialog open={isOpen} onOpenChange={onOpenChange}> | ||
<Dialog open onOpenChange={onOpenChange}> |
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 should be isOpen
- no?
<Dialog open onOpenChange={onOpenChange}> | |
<Dialog isOpen onOpenChange={onOpenChange}> |
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.
no, you can see the previous was open={isOpen}
, leaving just open
means it'll be true
always, which is what I want to achieve. The opening is managed differently here.
We were still forcing a 2 tx flow, with an empty batch, when there was nothing to unvote/undelegate.
Now if you arrive with no prior interaction with opengov, you can delegate in 1 tx.