From 620428942629d8f57d1bf25a968ad555faea3e3a Mon Sep 17 00:00:00 2001 From: iamacook Date: Mon, 7 Feb 2022 19:37:09 +0100 Subject: [PATCH] style: remove on-chain rejection label --- .../Transactions/TxList/TxCollapsed.tsx | 7 ++--- .../components/Transactions/TxList/styled.tsx | 30 ------------------- 2 files changed, 2 insertions(+), 35 deletions(-) diff --git a/src/routes/safe/components/Transactions/TxList/TxCollapsed.tsx b/src/routes/safe/components/Transactions/TxList/TxCollapsed.tsx index 14eebcd45f..ad5db945a6 100644 --- a/src/routes/safe/components/Transactions/TxList/TxCollapsed.tsx +++ b/src/routes/safe/components/Transactions/TxList/TxCollapsed.tsx @@ -24,7 +24,7 @@ import { TokenTransferAmount } from './TokenTransferAmount' import { TxsInfiniteScrollContext } from './TxsInfiniteScroll' import { TxLocationContext } from './TxLocationProvider' import { CalculatedVotes } from './TxQueueCollapsed' -import { getTxTo, isAwaitingExecution, isCancelTxDetails } from './utils' +import { getTxTo, isAwaitingExecution } from './utils' import { userAccountSelector } from 'src/logic/wallets/store/selectors' import { useKnownAddress } from './hooks/useKnownAddress' import useTxStatus from 'src/logic/hooks/useTxStatus' @@ -123,9 +123,6 @@ export const TxCollapsed = ({ const isPending = txStatus === LocalTransactionStatus.PENDING const willBeReplaced = txStatus === LocalTransactionStatus.WILL_BE_REPLACED ? ' will-be-replaced' : '' - const onChainRejection = - isCancelTxDetails(transaction.txInfo) && txLocation !== 'history' ? ' on-chain-rejection' : '' - const txCollapsedNonce = (
{nonce} @@ -133,7 +130,7 @@ export const TxCollapsed = ({ ) const txCollapsedType = ( -
+
theme.colors.errorTooltip}; - border-left: 4px solid ${({ theme }) => theme.colors.error}; - border-radius: 4px; - padding-left: 7px; - height: 22px; - max-width: 165px; - - > div { - height: 17px; - align-items: center; - padding-top: 3px; - } - - p { - font-size: 11px; - line-height: 16px; - letter-spacing: 1px; - font-weight: bold; - text-transform: uppercase; - margin-left: -2px; - } - } -` - export const StyledTransaction = styled.div` ${willBeReplaced}; ${failedTransaction}; @@ -208,10 +182,6 @@ export const StyledTransaction = styled.div` align-self: center; } - .tx-type { - ${onChainRejection}; - } - .tx-votes { justify-self: center; }