ghost-portal/packages/react-hooks/src
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
..
index.ts Add summary bar for accounts view (#5876) 2021-08-18 11:26:12 +02:00
translate.ts 2021 (#4310) 2021-01-03 11:33:39 +01:00
types.ts Use useCollectiveModule for all collective locations (#5762) 2021-07-05 08:03:27 +02:00
useAccountId.ts 2021 (#4310) 2021-01-03 11:33:39 +01:00
useAccountInfo.ts Update deps (& berry) (#4765) 2021-03-03 11:52:39 +01:00
useAccounts.ts Add app-accounts testing support (#5872) 2021-07-28 11:50:06 +02:00
useAddresses.ts 2021 (#4310) 2021-01-03 11:33:39 +01:00
useApi.ts 2021 (#4310) 2021-01-03 11:33:39 +01:00
useApiUrl.ts Enable Statemine <-> Kusama (w/ fees) (#5495) 2021-06-08 11:08:15 +02:00
useAvailableSlashes.ts Enable Statemine <-> Kusama (w/ fees) (#5495) 2021-06-08 11:08:15 +02:00
useBalancesAll.ts Add app-accounts testing support (#5872) 2021-07-28 11:50:06 +02:00
useBestHash.ts Adjust contribution state update (& indicator) (#5561) 2021-06-11 09:48:28 +02:00
useBestNumber.ts useBestNumber hook (#4846) 2021-03-14 15:12:53 +01:00
useBlocksPerDays.ts Discard invalid configuration minimumPeriod values (#5913) 2021-08-03 08:46:33 +02:00
useBlockTime.ts Discard invalid configuration minimumPeriod values (#5913) 2021-08-03 08:46:33 +02:00
useCacheKey.ts useBestNumber hook (#4846) 2021-03-14 15:12:53 +01:00
useCall.ts Bump API (#5239) 2021-05-09 11:01:57 +02:00
useCallMulti.ts Ensure useLoadingDelay fires only once (#4638) 2021-02-09 15:14:27 +01:00
useCollectiveInstance.ts Use useCollectiveModule for all collective locations (#5762) 2021-07-05 08:03:27 +02:00
useCollectiveMembers.ts Use useCollectiveModule for all collective locations (#5762) 2021-07-05 08:03:27 +02:00
useDebounce.ts 2021 (#4310) 2021-01-03 11:33:39 +01:00
useEventTrigger.ts Optimize crowdloan refresh (delta only on events) (#5549) 2021-06-10 09:05:40 +02:00
useExtrinsicTrigger.ts useEventTrigger without string specifiers (#5166) 2021-04-30 14:10:21 +02:00
useFavorites.ts Don't re-read storage on useFavorites (#4639) 2021-02-09 15:38:13 +01:00
useFormField.ts Support new contracts putCode (#4622) 2021-02-06 15:51:09 +01:00
useIncrement.ts 2021 (#4310) 2021-01-03 11:33:39 +01:00
useInflation.ts Handle BN type-only imports correctly (#5428) 2021-06-03 10:41:55 +02:00
useIpfs.ts Ensure useState doesn't re-init with function calls (#4552) 2021-02-01 14:17:14 +01:00
useIsMountedRef.ts 2021 (#4310) 2021-01-03 11:33:39 +01:00
useLedger.ts Adjust Ledger lookups via hash/apps only (#5618) 2021-06-29 16:23:00 +02:00
useLoadingDelay.ts Ensure useLoadingDelay fires only once (#4638) 2021-02-09 15:14:27 +01:00
useMapEntries.ts Check for registered code before crowdloan or bid (#5274) 2021-05-13 19:47:18 +02:00
useMapKeys.ts Add useMap{Entries, Keys} hooks (#5164) 2021-04-30 09:03:13 +02:00
useModal.ts 2021 (#4310) 2021-01-03 11:33:39 +01:00
useNonEmptyString.ts Support new contracts putCode (#4622) 2021-02-06 15:51:09 +01:00
useNonZeroBn.ts Support new contracts putCode (#4622) 2021-02-06 15:51:09 +01:00
useOwnEraRewards.ts Remove Substrate 2.0 generation payouts (#5612) 2021-06-17 08:27:19 +02:00
useOwnStashes.ts Add warning to bond, not send (#4656) 2021-02-11 18:48:38 +01:00
useOwnStashInfos.ts Remove some floating "as any" usages (#4565) 2021-02-01 20:46:31 +01:00
useParaApi.ts Randomize parachain endpoints (#5656) 2021-06-22 14:19:26 +02:00
useParaEndpoints.ts Allow xcm asset teleport (#5413) 2021-06-02 15:11:11 +02:00
usePassword.ts 2021 (#4310) 2021-01-03 11:33:39 +01:00
useRegistrars.ts 2021 (#4310) 2021-01-03 11:33:39 +01:00
useSavedFlags.ts Ensure useState doesn't re-init with function calls (#4552) 2021-02-01 14:17:14 +01:00
useStakingInfo.ts Add summary bar for accounts view (#5876) 2021-08-18 11:26:12 +02:00
useStepper.ts Support new contracts putCode (#4622) 2021-02-06 15:51:09 +01:00
useSudo.ts Parachain approval (#4374) 2021-01-12 10:50:04 +01:00
useTeleport.ts Chain types CI check (#5460) 2021-06-05 13:58:33 +02:00
useToggle.ts 2021 (#4310) 2021-01-03 11:33:39 +01:00
useTreasury.ts Treasury account from palletId (as available) (#5714) 2021-06-29 07:52:41 +02:00
useTxBatch.ts Add useMap{Entries, Keys} hooks (#5164) 2021-04-30 09:03:13 +02:00
useVotingStatus.ts Rework collective queries (#5732) 2021-07-02 10:42:13 +02:00
useWeight.ts Handle BN type-only imports correctly (#5428) 2021-06-03 10:41:55 +02:00
useWeightFee.ts Enable Statemine <-> Kusama (w/ fees) (#5495) 2021-06-08 11:08:15 +02:00