diff --git a/src/popup/views/transactionDetail.js b/src/popup/views/transactionDetail.js index 1091005..bafc31d 100644 --- a/src/popup/views/transactionDetail.js +++ b/src/popup/views/transactionDetail.js @@ -37,11 +37,19 @@ function blockieHtml(address) { return ``; } +function etherscanLinkHtml(url) { + return ( + `${EXT_ICON}` + ); +} + function txAddressHtml(address, ensName, title) { const blockie = blockieHtml(address); const dot = addressDotHtml(address); const link = `https://etherscan.io/address/${address}`; - const extLink = `${EXT_ICON}`; + const extLink = etherscanLinkHtml(link); let html = `
${blockie}
`; if (title) { html += `
${escapeHtml(title)}
`; @@ -50,10 +58,10 @@ function txAddressHtml(address, ensName, title) { html += `
${dot}` + copyableHtml(ensName, "") + - extLink + `
` + - `
` + + `
${dot}` + copyableHtml(address, "break-all") + + extLink + `
`; } else { html += @@ -67,7 +75,7 @@ function txAddressHtml(address, ensName, title) { function txHashHtml(hash) { const link = `https://etherscan.io/tx/${hash}`; - const extLink = `${EXT_ICON}`; + const extLink = etherscanLinkHtml(link); return copyableHtml(hash, "break-all") + extLink; }