From a962768eb2343bcf3fac2fa8a48b73d7fd2f7200 Mon Sep 17 00:00:00 2001 From: Jaco Date: Wed, 8 Feb 2023 02:54:39 +0200 Subject: [PATCH] Don't transform LinkedWrapper labels (#8970) --- .../react-components/src/InputExtrinsic/LinkedWrapper.tsx | 4 ++++ packages/react-components/src/Params/index.ts | 3 ++- packages/react-params/src/Param/findComponent.ts | 2 +- packages/react-params/src/initValue.ts | 1 + 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/packages/react-components/src/InputExtrinsic/LinkedWrapper.tsx b/packages/react-components/src/InputExtrinsic/LinkedWrapper.tsx index a8b20ff11a..cd25c963b6 100644 --- a/packages/react-components/src/InputExtrinsic/LinkedWrapper.tsx +++ b/packages/react-components/src/InputExtrinsic/LinkedWrapper.tsx @@ -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); diff --git a/packages/react-components/src/Params/index.ts b/packages/react-components/src/Params/index.ts index 308ac66b98..2b23a0927e 100644 --- a/packages/react-components/src/Params/index.ts +++ b/packages/react-components/src/Params/index.ts @@ -10,7 +10,8 @@ import Proposal from './Proposal'; const components: ComponentMap = { Call, OpaqueCall, - Proposal + Proposal, + RuntimeCall: Call }; export default components; diff --git a/packages/react-params/src/Param/findComponent.ts b/packages/react-params/src/Param/findComponent.ts index fca27739bf..188ff826f4 100644 --- a/packages/react-params/src/Param/findComponent.ts +++ b/packages/react-params/src/Param/findComponent.ts @@ -55,7 +55,7 @@ const componentDef: TypeToComponent[] = [ { c: Balance, t: ['Amount', 'Balance', 'BalanceOf'] }, { c: Bool, t: ['bool'] }, { c: Bytes, t: ['Bytes', 'Vec'] }, - { c: Call, t: ['Call', 'Proposal'] }, + { c: Call, t: ['Call', 'Proposal', 'RuntimeCall'] }, { c: Cid, t: ['PalletAllianceCid'] }, { c: Code, t: ['Code'] }, { c: DispatchError, t: DISPATCH_ERROR }, diff --git a/packages/react-params/src/initValue.ts b/packages/react-params/src/initValue.ts index f8e5fd162f..6be29f2bef 100644 --- a/packages/react-params/src/initValue.ts +++ b/packages/react-params/src/initValue.ts @@ -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':