-
Notifications
You must be signed in to change notification settings - Fork 29
Operator mapping - code cleaning #223
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
Merged
Merged
Changes from all commits
Commits
Show all changes
43 commits
Select commit
Hold shift + click to select a range
5822c8d
Refactor mapping to not use redux store
michalsmiarowski 3dc60ea
Fix display operator mapping effect
michalsmiarowski b09cf35
Fix displaying modal when changing accounts
michalsmiarowski ca8a09b
Add operatorMappingData to the store
michalsmiarowski c1694a0
Fix displaying OperatorAddressMappingCard
michalsmiarowski 6b98f55
Rename and move operatorMapped event
michalsmiarowski 000ef3d
Remove unused prop
michalsmiarowski 04e6e42
Use mappedOperators data from the store
michalsmiarowski 2d66a01
Fix displaying OperatorAddressMappingCard
michalsmiarowski 007f883
Refactor modalQueue state
michalsmiarowski 73490d2
Refactor map operator success modal
michalsmiarowski 008179b
Fix imports
michalsmiarowski 2e665b4
Use useAppDispatch and useAppSelector hooks
michalsmiarowski 2cf5d87
Fix displaying modals when changing accounts
michalsmiarowski 497617a
Fix `isFetching` prop for operator address mapping
michalsmiarowski e381413
Update comment
michalsmiarowski 4f160ef
Merge branch 'main' into operator-mapping-code-cleaning
michalsmiarowski 8860313
Simplify if statement
michalsmiarowski 530837e
Remove unnecessary type
michalsmiarowski 45c0b72
Simplify another if statement
michalsmiarowski 4fd84b4
Use useAppSelector hook instead of useSelector
michalsmiarowski 369c9c9
Clean imports
michalsmiarowski cdf3180
Simplify key for the fragment
michalsmiarowski ae4231d
Fix Id of the ViewInExplorer
michalsmiarowski a1810ef
Fix error message
michalsmiarowski 45a5009
Fix typo
michalsmiarowski 0de4912
Clean up success modal
michalsmiarowski 08e6e15
Remove unnecessary TODO
michalsmiarowski d35e967
Fix typo
michalsmiarowski d3c637b
Improvde getStakingProviderOperatorInfo effect
michalsmiarowski 47639bf
Rename connected account to account
michalsmiarowski eae8d07
Merge branch 'main' into operator-mapping-code-cleaning
michalsmiarowski 64677b3
Update text
michalsmiarowski 7ed1d17
Simplify MapOperatorToStakingProviderForm
michalsmiarowski 009344d
Fix isAddressZero import
michalsmiarowski c5453fd
Change `setAccountAddress` action name
michalsmiarowski 2fd7154
Remove unnecessary variables
michalsmiarowski 676058f
Remove unnecessary keys from ListItem
michalsmiarowski f754bc4
Rename isUsedAsStakingProvider prop in store
michalsmiarowski 390eaea
Remove `mappedOperators` from store
michalsmiarowski 7cf4736
Refactor setMappingOperator reducer
michalsmiarowski 111117d
Remove setFetchingOperatorMapping
michalsmiarowski 96105de
Fix validation in OperatorToStakingProvider form
michalsmiarowski 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
why remove this helper hook? seems like it saved some duplicate code. What if we added the tbtc & random beacon addresses as parameters so we don't have to rewrite the logic?
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 will be addressed in #278