-
Notifications
You must be signed in to change notification settings - Fork 212
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
Voting: use aragonAPI for React + React hooks #717
Merged
Merged
Changes from all commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
b3e8913
Use label prop on ButtonIcon elements
bpierre 9f2f822
Voting: use hooks + @aragon/api-react
bpierre cf11c57
Remove useless .pipe( first() ) calls
bpierre d82227f
Merge branch 'master' into voting-react-api
bpierre 7ce65a3
Fix infinite calls when opening a vote
bpierre 3d72b24
Use the new @aragon/api-react API
bpierre 42b2ea0
Optimize rendering
bpierre 58d35b7
@aragon/api-react API change
bpierre 3bfb5ab
Merge branch 'master' into voting-react-api
bpierre 5f9855f
Merge master into voting-react-api
bpierre c03bffe
shorthand properties first
bpierre 49b0a20
useNow(): update if updateEvery changes
bpierre 49cdbbd
VotePanelContent: make use of useCurrentVoteData()
bpierre 99b9672
Make VotePanelContent a function component
bpierre d86b477
styled-component css transform doesn’t like attached components
bpierre e361906
Use displayMenuButton
bpierre 1481296
Use IconMenu from @aragon/ui
bpierre 111952f
ESLint fixes
bpierre 5c9b40c
Refactor App.js to move the logic into custom hooks
bpierre 58d76e8
Make IdentityManager.js a JS module
bpierre 7324e55
LocalIdentityBadge: consume useNetwork() directly
bpierre 5679af8
Add the React Hooks linter plugin
bpierre bff5a55
Add a comment about why we keep the selected vote until the panel get…
bpierre 61df0bf
Render identity badges
bpierre a5bae27
Merge branch 'master' into voting-react-api
bpierre 07baf36
Stop exporting SettingsContext
bpierre b6e08b1
useVotingApp() => useAppLogic()
bpierre d32c6ad
open() / close() => requestOpen() / requestClose()
bpierre bd0f415
Group aragonAPI hooks using useAragonApi()
bpierre 940647c
User balance: use -1 for unknown balances
bpierre 54f6f2a
Identity: remove references to a modal
bpierre 2af4569
getUserBalance(): check if vote exists
bpierre 7f181a9
Refactoring: voting text rendering
bpierre 641137e
Skip useless VotingCard renderings
bpierre 3645dc5
Remove console.log() calls
bpierre c09b088
ESLint fixes
bpierre 98b22b4
fix: use new API for usePanelState()
sohkai c408c21
VotingCard: remove unnecessary default prop
sohkai File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Nice!