Skip to content
This repository has been archived by the owner on Nov 10, 2023. It is now read-only.

Commit

Permalink
3.15.6
Browse files Browse the repository at this point in the history
  • Loading branch information
iamacook committed Dec 2, 2021
1 parent 70738bd commit 1934f32
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "safe-react",
"version": "3.15.5",
"version": "3.15.6",
"description": "Allowing crypto users manage funds in a safer way",
"website": "https://github.com/gnosis/safe-react#readme",
"bugs": {
Expand Down
28 changes: 28 additions & 0 deletions src/routes/safe/components/Transactions/TxList/TxInfoMultiSend.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import { ReactElement } from 'react'
import { MultiSend } from '@gnosis.pm/safe-react-gateway-sdk'
import { EthHashInfo } from '@gnosis.pm/safe-react-components'

import { getExplorerInfo } from 'src/config'
import { InfoDetails } from './InfoDetails'

// Does not use AddressInfo as to not allow address book data display
// as we use backend data to verify the deligate call
const TxInfoMultiSend = ({ txInfo }: { txInfo: MultiSend }): ReactElement => {
const hash = txInfo?.to.value
const name = txInfo.to?.name || undefined
const customAvatar = txInfo.to?.logoUri || undefined
return (
<InfoDetails title="MultiSend contract:">
<EthHashInfo
hash={hash}
name={name}
customAvatar={customAvatar}
showAvatar
showCopyBtn
explorerUrl={getExplorerInfo(hash)}
/>
</InfoDetails>
)
}

export default TxInfoMultiSend

0 comments on commit 1934f32

Please sign in to comment.