Skip to content

Commit

Permalink
Add copy button to token addresses on Token Balances page
Browse files Browse the repository at this point in the history
  • Loading branch information
sealer3 committed Dec 9, 2023
1 parent 98caef3 commit c9f4d6f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/execution/address/TokenBalance.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { FC, useContext } from "react";
import Copy from "../../components/Copy";
import USDAmount from "../../components/USDAmount";
import { useTokenBalance } from "../../ots2/usePrototypeTransferHooks";
import FormattedBalanceHighlighter from "../../selection/FormattedBalanceHighlighter";
Expand All @@ -25,7 +26,10 @@ const TokenBalance: FC<TokenBalanceProps> = ({
return (
<tr>
<td>
<DecoratedAddressLink address={tokenAddress} />
<div className="-ml-1 flex items-baseline space-x-2">
<DecoratedAddressLink address={tokenAddress} />
<Copy value={tokenAddress} />
</div>
</td>
<td>
{balance !== null && balance !== undefined && (
Expand Down

0 comments on commit c9f4d6f

Please sign in to comment.