ghost-portal/packages/page-staking/src
MiZiet b4967ca82c
Popup menu replace and styling (#6007)
* 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>
2021-08-31 10:39:17 +02:00
..
Actions Popup menu replace and styling (#6007) 2021-08-31 10:39:17 +02:00
md Add info about the nominators state (#3420) 2020-08-14 20:12:00 +02:00
Overview Also display total nominator count (#5699) 2021-06-27 06:23:50 +02:00
Payouts Bump dev (w/ lint fixes) (#6006) 2021-08-26 12:16:11 +02:00
Query Handle BN type-only imports correctly (#5428) 2021-06-03 10:41:55 +02:00
Slashes Use useCollectiveModule for all collective locations (#5762) 2021-07-05 08:03:27 +02:00
Targets Bump dev (w/ lint fixes) (#6006) 2021-08-26 12:16:11 +02:00
ActionsBanner.tsx Add warning to bond, not send (#4656) 2021-02-11 18:48:38 +01:00
constants.ts 2021 (#4310) 2021-01-03 11:33:39 +01:00
ElectionBanner.tsx Add warning to bond, not send (#4656) 2021-02-11 18:48:38 +01:00
Filtering.tsx 2021 (#4310) 2021-01-03 11:33:39 +01:00
index.tsx Warn on staking min bond (#5674) 2021-06-24 13:46:09 +02:00
Legend.tsx Hide para indicator on non relays (#5344) 2021-05-22 07:19:18 +02:00
MaxBadge.tsx 2021 (#4310) 2021-01-03 11:33:39 +01:00
translate.ts 2021 (#4310) 2021-01-03 11:33:39 +01:00
types.ts Warn on staking min bond (#5674) 2021-06-24 13:46:09 +02:00
useIdentities.ts 2021 (#4310) 2021-01-03 11:33:39 +01:00
useNominations.ts 2021 (#4310) 2021-01-03 11:33:39 +01:00
useSortedTargets.ts Warn on staking min bond (#5674) 2021-06-24 13:46:09 +02:00