diff --git a/src/routes/safe/components/Transactions/TxsTable/ExpandedTx/index.jsx b/src/routes/safe/components/Transactions/TxsTable/ExpandedTx/index.jsx index cd65d840..d71941ea 100644 --- a/src/routes/safe/components/Transactions/TxsTable/ExpandedTx/index.jsx +++ b/src/routes/safe/components/Transactions/TxsTable/ExpandedTx/index.jsx @@ -1,7 +1,8 @@ // @flow import React, { useState } from 'react' import { List } from 'immutable' -import { withStyles } from '@material-ui/core/styles' +import cn from 'classnames' +import { makeStyles } from '@material-ui/core/styles' import Row from '~/components/layout/Row' import Block from '~/components/layout/Block' import Col from '~/components/layout/Col' @@ -22,7 +23,6 @@ import IncomingTxDescription from '~/routes/safe/components/Transactions/TxsTabl import { INCOMING_TX_TYPE } from '~/routes/safe/store/models/incomingTransaction' type Props = { - classes: Object, tx: Transaction, threshold: number, owners: List, @@ -31,10 +31,10 @@ type Props = { safeAddress: string, createTransaction: Function, processTransaction: Function, - nonce: number, + nonce: number } -type OpenModal = 'cancelTx' | 'approveTx' | null +type OpenModal = "cancelTx" | "approveTx" | null const txStatusToLabel = { success: 'Success', @@ -45,8 +45,9 @@ const txStatusToLabel = { pending: 'Pending', } +const useStyles = makeStyles(styles) + const ExpandedTx = ({ - classes, tx, threshold, owners, @@ -57,6 +58,7 @@ const ExpandedTx = ({ processTransaction, nonce, }: Props) => { + const classes = useStyles() const [openModal, setOpenModal] = useState(null) const openApproveModal = () => setOpenModal('approveTx') const openCancelModal = () => setOpenModal('cancelTx') @@ -69,7 +71,12 @@ const ExpandedTx = ({ - + TX hash: {tx.executionTxHash ? ( @@ -80,9 +87,7 @@ const ExpandedTx = ({ TX status: - - {txStatusToLabel[tx.status]} - + {txStatusToLabel[tx.status]} {tx.type === INCOMING_TX_TYPE ? ( <> @@ -131,7 +136,11 @@ const ExpandedTx = ({ )} - {tx.type === INCOMING_TX_TYPE ? : } + {tx.type === INCOMING_TX_TYPE ? ( + + ) : ( + + )} {tx.type !== INCOMING_TX_TYPE && ( ({ txHash: { paddingRight: '3px', }, + incomingTxBlock: { + borderRight: '2px solid rgb(232, 231, 230)', + }, })