fix: etherscan links not opening in new tabs sometimes (#713)

This commit is contained in:
Dexter Edwards 2022-07-06 16:59:06 +01:00 committed by GitHub
parent 836c232a1c
commit 58799bb231
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 0 deletions

View File

@ -42,6 +42,7 @@ const Contracts = () => {
<Link
title={t('View address on Etherscan')}
href={`${ETHERSCAN_URL}/address/${contract.address}`}
target="_blank"
>
{contract.address}
</Link>
@ -57,6 +58,7 @@ const Contracts = () => {
<Link
title={t('View address on Etherscan')}
href={`${ETHERSCAN_URL}/address/${value}`}
target="_blank"
>
{value}
</Link>

View File

@ -50,6 +50,7 @@ export const TokenDetails = ({
title={t('View on Etherscan (opens in a new tab)')}
className="font-mono text-white text-right"
href={`${ETHERSCAN_URL}/address/${token.address}`}
target="_blank"
>
{token.address}
</Link>
@ -61,6 +62,7 @@ export const TokenDetails = ({
title={t('View on Etherscan (opens in a new tab)')}
className="font-mono text-white text-right"
href={`${ETHERSCAN_URL}/address/${config.token_vesting_contract.address}`}
target="_blank"
>
{config.token_vesting_contract.address}
</Link>

View File

@ -46,6 +46,7 @@ export const TxRow = ({
href={`${ETHERSCAN_URL}/tx/${txHash}`}
title={t('View transaction on Etherscan')}
className="text-vega-pink dark:text-vega-yellow"
target="_blank"
>
{t('View on Etherscan')}
</Link>
@ -65,6 +66,7 @@ export const TxRow = ({
href={`${ETHERSCAN_URL}/tx/${txHash}`}
title={t('View on Etherscan')}
className="text-vega-pink dark:text-vega-yellow"
target="_blank"
>
{t('View transaction on Etherscan')}
</Link>