Transaction List

This commit is contained in:
nicosampler 2020-07-29 15:28:14 -03:00
parent 8bc7d3efcc
commit 184c1cb08e
2 changed files with 7 additions and 3 deletions

View File

@ -38,7 +38,7 @@ const AddressDetails = styled.div`
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
width: 150px; width: 175px;
div { div {
margin-left: 0px; margin-left: 0px;

View File

@ -2,6 +2,7 @@ import { makeStyles } from '@material-ui/core/styles'
import cn from 'classnames' import cn from 'classnames'
import React, { useState } from 'react' import React, { useState } from 'react'
import { useSelector } from 'react-redux' import { useSelector } from 'react-redux'
import { AddressInfo } from '@gnosis.pm/safe-react-components'
import ApproveTxModal from './ApproveTxModal' import ApproveTxModal from './ApproveTxModal'
import OwnersColumn from './OwnersColumn' import OwnersColumn from './OwnersColumn'
@ -9,7 +10,6 @@ import RejectTxModal from './RejectTxModal'
import TxDescription from './TxDescription' import TxDescription from './TxDescription'
import { styles } from './style' import { styles } from './style'
import EtherScanLink from 'src/components/EtherscanLink'
import Block from 'src/components/layout/Block' import Block from 'src/components/layout/Block'
import Bold from 'src/components/layout/Bold' import Bold from 'src/components/layout/Bold'
import Col from 'src/components/layout/Col' import Col from 'src/components/layout/Col'
@ -59,7 +59,11 @@ const ExpandedTx = ({ cancelTx, tx }) => {
<Block className={cn(classes.txDataContainer, (isIncomingTx || isCreationTx) && classes.incomingTxBlock)}> <Block className={cn(classes.txDataContainer, (isIncomingTx || isCreationTx) && classes.incomingTxBlock)}>
<Block align="left" className={classes.txData}> <Block align="left" className={classes.txData}>
<Bold className={classes.txHash}>Hash:</Bold> <Bold className={classes.txHash}>Hash:</Bold>
{tx.executionTxHash ? <EtherScanLink cut={8} type="tx" value={tx.executionTxHash} /> : 'n/a'} {tx.executionTxHash ? (
<AddressInfo address={tx.executionTxHash} shortenAddress={4} showCopyBtn showEtherscanBtn />
) : (
'n/a'
)}
</Block> </Block>
{!isIncomingTx && !isCreationTx && ( {!isIncomingTx && !isCreationTx && (
<Paragraph noMargin> <Paragraph noMargin>