-
Notifications
You must be signed in to change notification settings - Fork 7
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
Show banner for when user delegated tokens after a proposal was made #2721
base: develop
Are you sure you want to change the base?
Conversation
…, and removed false execution paths
Deploying decent-interface with Cloudflare Pages
|
export const VOTE_CHOICES = [ | ||
{ | ||
label: 'yes', | ||
label: 'Approve', | ||
value: 1, | ||
}, | ||
{ | ||
label: 'no', | ||
label: 'Reject', | ||
value: 0, | ||
}, | ||
{ | ||
label: 'abstain', | ||
label: 'Abstain', | ||
value: 2, | ||
}, |
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.
What are these changes for?
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.
The lowercase "yes/no/abstain" are translation string keys though right?
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.
Oh... dang. Duh. Will update, thanks
{showVotingPower ? proposalVotingWeight : t('show')} | ||
</Button> | ||
); | ||
const notEnoughVotingPowerAtTheTimeOfProposalCreation = |
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.
now if thats not an example of clear variable naming I don't know what is.
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.
lmaooo
@@ -73,7 +313,6 @@ export function AzoriusProposalSummary({ proposal }: { proposal: AzoriusProposal | |||
address: tokenAddress, | |||
client: publicClient, | |||
}); | |||
// @todo We should be checking proposal state - if it's active, we should use the latest block, otherwise we should calculate the voting weight based on the startBlock and deadlineMs |
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.
is this TODO no longer relavent?
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.
hm I don't remember. I'll take a look
See issue for testing instructions
I've also:
expandedView
I noticed the Quorum bar has been moved in the designs from the side panel to the Breakdown section:
I didn't do that here (too outta scope), but leaving it as is also led to ugly UI. For a middle ground I moved it out of the VoteSection, pending its move to the Votes Breakdown: