From b5b9157f8870cd33d2816fb8207457588e9a1ce7 Mon Sep 17 00:00:00 2001 From: Jaco Date: Sat, 1 May 2021 15:03:43 +0300 Subject: [PATCH] Fix explorer static copy (#5185) --- packages/react-components/src/Call.tsx | 20 ++++++++------------ packages/react-components/src/Static.tsx | 4 ++-- 2 files changed, 10 insertions(+), 14 deletions(-) diff --git a/packages/react-components/src/Call.tsx b/packages/react-components/src/Call.tsx index a1a381495e..f0e26f9755 100644 --- a/packages/react-components/src/Call.tsx +++ b/packages/react-components/src/Call.tsx @@ -108,35 +108,31 @@ function Call ({ children, className = '', labelHash, labelSignature, mortality, ('signature {{type}}', { replace: { type: signatureType ? `(${signatureType})` : '' } })} + value={signature} withCopy - > - {signature} - + /> )} {hash && ( ('extrinsic hash')} + value={hash} withCopy - > - {hash} - + /> )} {mortality && ( ('lifetime')} - > - {mortality} - + value={mortality} + /> )} {tip?.gtn(0) && ( ('tip')} - > - - + value={} + /> )} diff --git a/packages/react-components/src/Static.tsx b/packages/react-components/src/Static.tsx index e3edab7efd..3d7be40735 100644 --- a/packages/react-components/src/Static.tsx +++ b/packages/react-components/src/Static.tsx @@ -9,7 +9,7 @@ import Labelled from './Labelled'; interface Props { children?: React.ReactNode; className?: string; - defaultValue?: any; + defaultValue?: unknown; help?: React.ReactNode; isDisabled?: boolean; isError?: boolean; @@ -38,7 +38,7 @@ function Static ({ children, className = '', defaultValue, help, isFull, isHidde {children} {withCopy && ( - + )} );