Don't transform LinkedWrapper labels (#8970)

This commit is contained in:
Jaco 2023-02-08 02:54:39 +02:00 committed by GitHub
parent 7cc52b2050
commit a962768eb2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 2 deletions

View File

@ -66,6 +66,10 @@ const StyledDiv = styled.div`
text-align: right;
text-overflow: ellipsis;
}
> .ui--Labelled > label {
text-transform: none;
}
`;
export default React.memo(LinkedWrapper);

View File

@ -10,7 +10,8 @@ import Proposal from './Proposal';
const components: ComponentMap = {
Call,
OpaqueCall,
Proposal
Proposal,
RuntimeCall: Call
};
export default components;

View File

@ -55,7 +55,7 @@ const componentDef: TypeToComponent[] = [
{ c: Balance, t: ['Amount', 'Balance', 'BalanceOf'] },
{ c: Bool, t: ['bool'] },
{ c: Bytes, t: ['Bytes', 'Vec<u8>'] },
{ c: Call, t: ['Call', 'Proposal'] },
{ c: Call, t: ['Call', 'Proposal', 'RuntimeCall'] },
{ c: Cid, t: ['PalletAllianceCid'] },
{ c: Code, t: ['Code'] },
{ c: DispatchError, t: DISPATCH_ERROR },

View File

@ -108,6 +108,7 @@ export default function getInitValue (registry: Registry, def: TypeDef): unknown
case 'LookupSource':
case 'MisbehaviorReport':
case 'Proposal':
case 'RuntimeCall':
case 'Signature':
case 'SessionKey':
case 'StorageKey':