From 44e050471a099199372be882933bc3c6760f47a8 Mon Sep 17 00:00:00 2001 From: Csillag Kristof Date: Fri, 23 Feb 2024 14:45:40 +0100 Subject: [PATCH] Make sure TransactionLink is used correctly --- .../RuntimeTransactionDetailPage/index.tsx | 40 +++++-------------- 1 file changed, 9 insertions(+), 31 deletions(-) diff --git a/src/app/pages/RuntimeTransactionDetailPage/index.tsx b/src/app/pages/RuntimeTransactionDetailPage/index.tsx index 3e9d5026cf..ea1220d353 100644 --- a/src/app/pages/RuntimeTransactionDetailPage/index.tsx +++ b/src/app/pages/RuntimeTransactionDetailPage/index.tsx @@ -1,4 +1,4 @@ -import { FC, PropsWithChildren, useState } from 'react' +import { FC, useState } from 'react' import { useParams } from 'react-router-dom' import { useTranslation } from 'react-i18next' import { @@ -20,7 +20,6 @@ import Alert from '@mui/material/Alert' import { CopyToClipboard } from '../../components/CopyToClipboard' import { AppErrors } from '../../../types/errors' import { TextSkeleton } from '../../components/Skeleton' -import Box from '@mui/material/Box' import { BlockLink } from '../../components/Blocks/BlockLink' import { TransactionLink } from '../../components/Transactions/TransactionLink' import { TransactionEvents } from '../../components/Transactions/TransactionEvents' @@ -30,8 +29,6 @@ import { getNameForTicker, Ticker } from '../../../types/ticker' import { AllTokenPrices, useAllTokenPrices } from '../../../coin-gecko/api' import { CurrentFiatValue } from './CurrentFiatValue' import { AddressSwitch, AddressSwitchOption } from '../../components/AddressSwitch' -import InfoIcon from '@mui/icons-material/Info' -import Tooltip from '@mui/material/Tooltip' import { TransactionEncrypted, TransactionNotEncrypted } from '../../components/TransactionEncryptionStatus' import Typography from '@mui/material/Typography' import { LongDataDisplay } from '../../components/LongDataDisplay' @@ -146,23 +143,6 @@ export type TransactionDetailRuntimeBlock = RuntimeTransaction & { markAsNew?: boolean } -const TransactionInfoTooltip: FC> = ({ label, children }) => { - return ( - - - {label} - - } - > - {children} - - ) -} - export const RuntimeTransactionDetailView: FC<{ isLoading?: boolean transaction: TransactionDetailRuntimeBlock | undefined @@ -214,22 +194,20 @@ export const RuntimeTransactionDetailView: FC<{ <>
{t('common.hash')}
- - - + /> + {hash && }