diff --git a/packages/page-accounts/src/Accounts/Account.tsx b/packages/page-accounts/src/Accounts/Account.tsx index 8c1562b147..93989221b5 100644 --- a/packages/page-accounts/src/Accounts/Account.tsx +++ b/packages/page-accounts/src/Accounts/Account.tsx @@ -2,13 +2,13 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { DeriveAccountInfo } from '@polkadot/api-derive/types'; +import { DeriveAccountInfo, DeriveBalancesAll } from '@polkadot/api-derive/types'; import { ActionStatus } from '@polkadot/react-components/Status/types'; import { RecoveryConfig } from '@polkadot/types/interfaces'; import React, { useCallback, useState, useEffect } from 'react'; import styled from 'styled-components'; -import { AddressInfo, AddressSmall, Badge, Button, ChainLock, Forget, Icon, IdentityIcon, Input, InputTags, LinkExternal, Menu, Popup, Tag } from '@polkadot/react-components'; +import { AddressInfo, AddressSmall, Badge, Button, ChainLock, CryptoType, Forget, Icon, IdentityIcon, Input, InputTags, LinkExternal, Menu, Popup, Tag } from '@polkadot/react-components'; import { useApi, useCall, useToggle } from '@polkadot/react-hooks'; import { Option } from '@polkadot/types'; import keyring from '@polkadot/ui-keyring'; @@ -35,6 +35,7 @@ function Account ({ address, className, filter, isFavorite, toggleFavorite }: Pr const { t } = useTranslation(); const api = useApi(); const info = useCall(api.api.derive.accounts.info as any, [address]); + const balancesAll = useCall(api.api.derive.balances.all as any, [address]); const recoveryInfo = useCall(api.api.query.recovery?.recoverable, [address], { transform: (opt: Option): RecoveryConfig | null => opt.unwrapOr(null) @@ -305,7 +306,7 @@ function Account ({ address, className, filter, isFavorite, toggleFavorite }: Pr /> )} - + {isEditingTags ? ( - + + {balancesAll && formatNumber(balancesAll.accountNonce)} + + - - + + - +