mirror of
https://github.com/status-im/safe-react.git
synced 2026-08-30 21:21:10 +00:00
Tx decoded data, fix addresses array (#2309)
This commit is contained in:
@@ -49,8 +49,23 @@ const GenericValue = ({ method, type, value }: RenderValueProps): React.ReactEle
|
||||
}
|
||||
|
||||
const Value = ({ type, ...props }: RenderValueProps): React.ReactElement => {
|
||||
const explorerUrl = getExplorerInfo(props.value as string)
|
||||
if (isArrayParameter(type) && isAddress(type)) {
|
||||
return (
|
||||
<div>
|
||||
[
|
||||
<NestedWrapper>
|
||||
{(props.value as string[]).map((address) => {
|
||||
const explorerUrl = getExplorerInfo(address)
|
||||
return <EthHashInfo key={address} textSize="xl" hash={address} showCopyBtn explorerUrl={explorerUrl} />
|
||||
})}
|
||||
</NestedWrapper>
|
||||
]
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
if (isAddress(type)) {
|
||||
const explorerUrl = getExplorerInfo(props.value as string)
|
||||
return (
|
||||
<EthHashInfo textSize="xl" hash={props.value as string} showCopyBtn explorerUrl={explorerUrl} shortenHash={4} />
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user