-
Notifications
You must be signed in to change notification settings - Fork 71
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
cancel proposal feature #4750
cancel proposal feature #4750
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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.
Please also add a happy case test in app/pages/Proposals/ProposalPreview.stories.tsx
just to make sure the transaction was called once and with the correct parameters
proposal.votes.length === 0 && | ||
proposal.status !== 'cancelled' && <CancelProposalButton member={active} proposalId={proposal.id} />} |
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.
The proposal also has to be in an active state so deciding
and maybe dormant
(I'm not sure if a proposal can get to the dormant state without getting voted on let's put it just in case).
packages/ui/src/proposals/modals/CancelProposal/CancelProposalModal.tsx
Outdated
Show resolved
Hide resolved
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.
Appart from this LGTM, but lets wait for QA before merging
Co-authored-by: Theophile Sandoz <[email protected]>
Fixes #4694