Skip to content

Commit

Permalink
✨ Open tx explorer link in new tab (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
doitian authored Feb 18, 2024
1 parent dbff89d commit 7229084
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/u/[wallet]/[connection]/submit-building-packet.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ export function TxStatus({ txHash, txStatus, ckbChainConfig }) {

export function TxHash({ txHash, ckbChainConfig: { EXPLORER_URL } }) {
return EXPLORER_URL ? (
<a href={`${EXPLORER_URL}/transaction/${txHash}`}>{txHash}</a>
<a target="_blank" href={`${EXPLORER_URL}/transaction/${txHash}`}>
{txHash}
</a>
) : (
<span>{txHash}</span>
);
Expand Down

0 comments on commit 7229084

Please sign in to comment.