* Show basic balance info
* Show bonded summary
* Show redeemable summary
* Show unbonding summary
* Adopt linter suggestions
* Hide cards with zero balance
* Apply simplifications
Co-authored-by: Jaco <jacogr@gmail.com>
* Remove dead code
* Simplify balance==undefined case
* Add summary bar tests (#5890)
* Add tests for summary bar
* Improve test case name
Co-authored-by: Krzysztof Jelski <kjelski@gmail.com>
* Factor empty render into a beforeEach block
* Improve name of helper variable
Co-authored-by: Krzysztof Jelski <kjelski@gmail.com>
* Construct correct instance for StakingLedger.active
* Override only the relevant parts in each test case
* Simplify test cases
Co-authored-by: Krzysztof Jelski <kjelski@gmail.com>
* Sort by total balance and by type
* Rename "clas" to "htmlClass"
* Extract DEFAULT_SORT_CONTROLS constant
* Move stableSort to its own file
* Optimize sorting on accounts page
* Adopt new sorting design
* Apply suggestions from code review
Co-authored-by: Jaco <jacogr@gmail.com>
* Remove stableSort function
* Move Dropdown css to Account styles
* Add tests for sorting
* Adjust tests and apply lint fixes
* Apply lint fixes
* Improve row coloring and styling of button for sort direction
* Improve styling
* Fix tests setup and bug connected with cloning accounts
* Restore condition
* Fix imports
Co-authored-by: Jaco <jacogr@gmail.com>
Co-authored-by: Krzysztof Jelski <kjelski@gmail.com>
Co-authored-by: MiZiet <michalzietalak@o2.pl>
Co-authored-by: Ewa Kowalska <ewcia.kowalska@gmail.com>
* Add custom popup
* Render popup window with react portal
* Handle scroll
* Handle pointer scroll
* Refactor types
* Add useOutsideClick
* Restore button styles
* Update types
* Add tests
* Set multiple refs
* Cleanup
* Cleanup
* Move offset const to the utils
* Add useCallback in useScroll
* Remove empty lines in useElementPosition
* Change styled components to functional
* Make sure popup window stays in view
* Highlight trigger button when popup is open
* Add uesPopupWindow hook
* Make triangle larger
* Use full trigger height
* Apply new lint rules
* Group popup items into groups suggested by Jaco
Menu.Item is of SUI (semantic UI). It supports icons, but
we plan to replace SUI and thus this feature is likely to use
font awesome instead of SUI icons.
* Remove sui menu
* Improve styles
* Add translations
* Add hover
Co-authored-by: Marcin Wachulski <marcin@ethworks.io>