From 4c850ecead0bf9afaa65549f8ecacc5cbc096758 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20G=C5=82ownia?= Date: Fri, 24 Mar 2023 17:57:59 +0100 Subject: [PATCH] fix(trading): change etherscan link label on toast (#3262) --- .../lib/hooks/use-ethereum-transaction-toasts.tsx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/apps/trading/lib/hooks/use-ethereum-transaction-toasts.tsx b/apps/trading/lib/hooks/use-ethereum-transaction-toasts.tsx index a4bc75b9a..168879cef 100644 --- a/apps/trading/lib/hooks/use-ethereum-transaction-toasts.tsx +++ b/apps/trading/lib/hooks/use-ethereum-transaction-toasts.tsx @@ -103,7 +103,9 @@ const EthTxPendingToastContent = ({ tx }: EthTxToastContentProps) => { <> {t('Awaiting confirmation')}

{t('Please wait for your transaction to be confirmed.')}

- {tx.txHash && } + {tx.txHash && ( + {t('View on Etherscan')} + )} ); @@ -131,7 +133,9 @@ const EthTxConfirmedToastContent = ({ tx }: EthTxToastContentProps) => { <> {t('Transaction confirmed')}

{t('Your transaction has been confirmed.')}

- {tx.txHash && } + {tx.txHash && ( + {t('View on Etherscan')} + )} ); @@ -148,7 +152,9 @@ const EthTxCompletedToastContent = ({ tx }: EthTxToastContentProps) => { {t('Your transaction has been completed.')}{' '} {isDeposit && t('Waiting for deposit confirmation.')}

- {tx.txHash && } + {tx.txHash && ( + {t('View on Etherscan')} + )} );