ghost-portal/packages/react-hooks
Vitaliy c9aef5cfe9
Add summary bar for accounts view (#5876)
* 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>

Co-authored-by: Jaco <jacogr@gmail.com>
Co-authored-by: Krzysztof Jelski <kjelski@gmail.com>
2021-08-18 11:26:12 +02:00
..
src Add summary bar for accounts view (#5876) 2021-08-18 11:26:12 +02:00
.skip-build Skip npm 2020-02-27 22:18:23 +01:00
.skip-npm Skip npm 2020-02-27 22:18:23 +01:00
LICENSE Add useFavorites hook (incl. react-hooks package) (#1873) 2019-11-12 18:32:52 +01:00
package.json [CI Skip] release/beta 0.95.2-19 2021-08-18 07:24:33 +00:00
README.md Add useFavorites hook (incl. react-hooks package) (#1873) 2019-11-12 18:32:52 +01:00

@polkadot/react-hooks

WARNING: This is an internal package to polkadot-js/apps so is not inteded (yet) for broad use. Since these are generic components, they will move to the polkadot-js/ui repo once deemed stable and usable.

For the existing sharable components usable in external React-based projects, take a look at the polkadot-js/ui documentation