-
Notifications
You must be signed in to change notification settings - Fork 12
Display the votes on the network proposal details page (simplified version) #1356
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
Conversation
Deployed to Cloudflare Pages
|
c445593 to
2d971f4
Compare
2d971f4 to
c6913a8
Compare
| export const ProposalVoteIndicator: FC<ProposalVoteIndicatorProps> = ({ vote }) => { | ||
| const { t } = useTranslation() | ||
|
|
||
| if (!ProposalVoteValue[vote]) { |
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.
When does this happen? I would throw an error - response doesn't match types
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.
🤷 either. I'd crash it all
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.
From a user's perspective, we should show as much as possible. Showing a full invalid view does not help the user.
7da7549 to
2aea726
Compare
a8531a9 to
b4b912f
Compare
b4b912f to
b641559
Compare

Display votes on the proposal details page.
Design is here.
Some of the required data is not yet provided by nexus, including:
Therefore, some parts are not implemented yet.