@@ -3,9 +3,10 @@ import { AccountTransaction } from '@trezor/connect';
3
3
import { Row } from '@trezor/components' ;
4
4
import { spacings } from '@trezor/theme' ;
5
5
6
- import { Translation } from 'src/components /suite' ;
6
+ import { useTranslation } from 'src/hooks /suite' ;
7
7
import { WalletAccountTransaction } from 'src/types/wallet' ;
8
8
import { UnstakingTxAmount } from 'src/components/suite/UnstakingTxAmount' ;
9
+ import { BlurUrls } from 'src/views/wallet/tokens/common/BlurUrls' ;
9
10
10
11
type TransactionHeaderProps = {
11
12
transaction : WalletAccountTransaction ;
@@ -64,6 +65,8 @@ const getTransactionMessageId = ({ transaction, isPending }: GetTransactionMessa
64
65
} ;
65
66
66
67
export const TransactionHeader = ( { transaction, isPending } : TransactionHeaderProps ) => {
68
+ const { translationString } = useTranslation ( ) ;
69
+
67
70
if ( transaction ?. ethereumSpecific ?. parsedData ?. name ) {
68
71
return (
69
72
< Row gap = { spacings . xxs } overflow = "hidden" >
@@ -79,9 +82,11 @@ export const TransactionHeader = ({ transaction, isPending }: TransactionHeaderP
79
82
const symbol = getTxHeaderSymbol ( transaction ) ?. toUpperCase ( ) ;
80
83
81
84
return (
82
- < Translation
83
- id = { getTransactionMessageId ( { transaction, isPending } ) }
84
- values = { { symbol, multiple : isMultiTokenTransaction } }
85
+ < BlurUrls
86
+ text = { translationString ( getTransactionMessageId ( { transaction, isPending } ) , {
87
+ symbol,
88
+ multiple : isMultiTokenTransaction ,
89
+ } ) }
85
90
/>
86
91
) ;
87
92
} ;
0 commit comments