feat: fix EthTxCompletedToastContent (#2741)
This commit is contained in:
parent
d384fb35f1
commit
a6118c14dd
@ -27,7 +27,7 @@ const isWithdrawTransaction = (tx: EthStoredTxState) =>
|
|||||||
tx.methodName === 'withdraw_asset';
|
tx.methodName === 'withdraw_asset';
|
||||||
|
|
||||||
const isDepositTransaction = (tx: EthStoredTxState) =>
|
const isDepositTransaction = (tx: EthStoredTxState) =>
|
||||||
tx.methodName === 'withdraw_asset';
|
tx.methodName === 'deposit_asset';
|
||||||
|
|
||||||
const EthTransactionDetails = ({ tx }: { tx: EthStoredTxState }) => {
|
const EthTransactionDetails = ({ tx }: { tx: EthStoredTxState }) => {
|
||||||
const { data: assets } = useAssetsDataProvider();
|
const { data: assets } = useAssetsDataProvider();
|
||||||
@ -150,11 +150,11 @@ const EthTxCompletedToastContent = ({ tx }: EthTxToastContentProps) => {
|
|||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<h3 className="font-bold">
|
<h3 className="font-bold">
|
||||||
{t('Processing')} {isDeposit && 'deposit'}
|
{t('Processing')} {isDeposit && t('deposit')}
|
||||||
</h3>
|
</h3>
|
||||||
<p>
|
<p>
|
||||||
{t('Your transaction has been completed.')}
|
{t('Your transaction has been completed.')}
|
||||||
{isDeposit && t('Waiting for deposit confirmation')}
|
{isDeposit && t('Waiting for deposit confirmation.')}
|
||||||
</p>
|
</p>
|
||||||
<EtherscanLink tx={tx} />
|
<EtherscanLink tx={tx} />
|
||||||
<EthTransactionDetails tx={tx} />
|
<EthTransactionDetails tx={tx} />
|
||||||
|
Loading…
Reference in New Issue
Block a user