diff --git a/packages/page-explorer/src/BlockInfo/Extrinsic.tsx b/packages/page-explorer/src/BlockInfo/Extrinsic.tsx index a196e1e094..1335f817c8 100644 --- a/packages/page-explorer/src/BlockInfo/Extrinsic.tsx +++ b/packages/page-explorer/src/BlockInfo/Extrinsic.tsx @@ -8,7 +8,7 @@ import type { ICompact, INumber } from '@polkadot/types/types'; import React, { useMemo } from 'react'; import styled from 'styled-components'; -import { AddressMini, Call, Expander, LinkExternal } from '@polkadot/react-components'; +import { AddressMini, CallExpander, LinkExternal } from '@polkadot/react-components'; import { convertWeight } from '@polkadot/react-hooks/useWeight'; import { BN, formatNumber } from '@polkadot/util'; @@ -75,7 +75,7 @@ function ExtrinsicDisplay ({ blockNumber, className = '', events, index, maxBloc [value, withLink] ); - const { meta, method, section } = useMemo( + const { method, section } = useMemo( () => value.registry.findMetaCall(value.callIndex), [value] ); @@ -112,8 +112,6 @@ function ExtrinsicDisplay ({ blockNumber, className = '', events, index, maxBloc [index, events, maxBlockWeight] ); - const callName = `${section}.${method}`; - return ( - - - + {link && ( | null { +function CallExpander ({ children, className = '', labelHash, labelSignature, mortality, tip, value, withBorder, withHash, withSignature }: Props): React.ReactElement | null { const call = useMemo( () => value && value.callIndex ? value.registry.findMetaCall(value.callIndex) @@ -40,8 +46,13 @@ function CallExpander ({ children, className = '', labelHash, value, withHash }: {children} diff --git a/packages/react-components/src/Labelled.tsx b/packages/react-components/src/Labelled.tsx index 36512ca802..be9b9054dd 100644 --- a/packages/react-components/src/Labelled.tsx +++ b/packages/react-components/src/Labelled.tsx @@ -103,6 +103,10 @@ export default React.memo(styled(Labelled)` } } + &.isOuter { + margin: 0.25rem 0; + } + .labelExtra { color: rgba(78, 78, 78, .85); font-weight: var(--font-weight-normal);