diff --git a/packages/page-explorer/src/Summary.tsx b/packages/page-explorer/src/Summary.tsx index 386d85300728..443914789d9b 100644 --- a/packages/page-explorer/src/Summary.tsx +++ b/packages/page-explorer/src/Summary.tsx @@ -5,7 +5,7 @@ import React from 'react'; import { CardSummary, SummaryBox } from '@polkadot/react-components'; import { useApi } from '@polkadot/react-hooks'; -import { BestFinalized, BestNumber, BlockToTime, TimeNow, TotalInactive, TotalIssuance } from '@polkadot/react-query'; +import { AzeroCap, BestFinalized, BestNumber, BlockToTime, TimeNow, TotalInactive, TotalIssuance } from '@polkadot/react-query'; import { BN_ONE, formatNumber } from '@polkadot/util'; import SummarySession from './SummarySession.js'; @@ -43,6 +43,14 @@ function Summary ({ eventCount }: Props): React.ReactElement { > + {api.query.aleph.azeroCap && ( + + + + )} {!!api.query.balances.inactiveIssuance && ( | null { + const { api } = useApi(); + const azeroCap = useCall(api.query.aleph.azeroCap); + + return ( +
+ {label || ''} + + {children} +
+ ); +} + +export default React.memo(TotalIssuance); diff --git a/packages/react-query/src/index.ts b/packages/react-query/src/index.ts index ecfdf75d4c45..9fd95e284a42 100644 --- a/packages/react-query/src/index.ts +++ b/packages/react-query/src/index.ts @@ -2,6 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 export { default as Available } from './Available.js'; +export { default as AzeroCap } from './AzeroCap.js'; export { default as BalanceFree } from './BalanceFree.js'; export { default as BalanceVoting } from './BalanceVoting.js'; export { default as BestFinalized } from './BestFinalized.js';