fix: etherscan links not opening in new tabs sometimes (#713)
This commit is contained in:
parent
836c232a1c
commit
58799bb231
@ -42,6 +42,7 @@ const Contracts = () => {
|
|||||||
<Link
|
<Link
|
||||||
title={t('View address on Etherscan')}
|
title={t('View address on Etherscan')}
|
||||||
href={`${ETHERSCAN_URL}/address/${contract.address}`}
|
href={`${ETHERSCAN_URL}/address/${contract.address}`}
|
||||||
|
target="_blank"
|
||||||
>
|
>
|
||||||
{contract.address}
|
{contract.address}
|
||||||
</Link>
|
</Link>
|
||||||
@ -57,6 +58,7 @@ const Contracts = () => {
|
|||||||
<Link
|
<Link
|
||||||
title={t('View address on Etherscan')}
|
title={t('View address on Etherscan')}
|
||||||
href={`${ETHERSCAN_URL}/address/${value}`}
|
href={`${ETHERSCAN_URL}/address/${value}`}
|
||||||
|
target="_blank"
|
||||||
>
|
>
|
||||||
{value}
|
{value}
|
||||||
</Link>
|
</Link>
|
||||||
|
@ -50,6 +50,7 @@ export const TokenDetails = ({
|
|||||||
title={t('View on Etherscan (opens in a new tab)')}
|
title={t('View on Etherscan (opens in a new tab)')}
|
||||||
className="font-mono text-white text-right"
|
className="font-mono text-white text-right"
|
||||||
href={`${ETHERSCAN_URL}/address/${token.address}`}
|
href={`${ETHERSCAN_URL}/address/${token.address}`}
|
||||||
|
target="_blank"
|
||||||
>
|
>
|
||||||
{token.address}
|
{token.address}
|
||||||
</Link>
|
</Link>
|
||||||
@ -61,6 +62,7 @@ export const TokenDetails = ({
|
|||||||
title={t('View on Etherscan (opens in a new tab)')}
|
title={t('View on Etherscan (opens in a new tab)')}
|
||||||
className="font-mono text-white text-right"
|
className="font-mono text-white text-right"
|
||||||
href={`${ETHERSCAN_URL}/address/${config.token_vesting_contract.address}`}
|
href={`${ETHERSCAN_URL}/address/${config.token_vesting_contract.address}`}
|
||||||
|
target="_blank"
|
||||||
>
|
>
|
||||||
{config.token_vesting_contract.address}
|
{config.token_vesting_contract.address}
|
||||||
</Link>
|
</Link>
|
||||||
|
@ -46,6 +46,7 @@ export const TxRow = ({
|
|||||||
href={`${ETHERSCAN_URL}/tx/${txHash}`}
|
href={`${ETHERSCAN_URL}/tx/${txHash}`}
|
||||||
title={t('View transaction on Etherscan')}
|
title={t('View transaction on Etherscan')}
|
||||||
className="text-vega-pink dark:text-vega-yellow"
|
className="text-vega-pink dark:text-vega-yellow"
|
||||||
|
target="_blank"
|
||||||
>
|
>
|
||||||
{t('View on Etherscan')}
|
{t('View on Etherscan')}
|
||||||
</Link>
|
</Link>
|
||||||
@ -65,6 +66,7 @@ export const TxRow = ({
|
|||||||
href={`${ETHERSCAN_URL}/tx/${txHash}`}
|
href={`${ETHERSCAN_URL}/tx/${txHash}`}
|
||||||
title={t('View on Etherscan')}
|
title={t('View on Etherscan')}
|
||||||
className="text-vega-pink dark:text-vega-yellow"
|
className="text-vega-pink dark:text-vega-yellow"
|
||||||
|
target="_blank"
|
||||||
>
|
>
|
||||||
{t('View transaction on Etherscan')}
|
{t('View transaction on Etherscan')}
|
||||||
</Link>
|
</Link>
|
||||||
|
Loading…
Reference in New Issue
Block a user