Make addresses copyable

This commit is contained in:
Nick Brown 2020-04-17 01:42:42 -07:00 committed by Michael Vines
parent 9bf3ddf9c4
commit 0cef795107
1 changed files with 2 additions and 1 deletions

View File

@ -11,6 +11,7 @@ import { assertUnreachable } from "../utils";
import { displayAddress } from "../utils/tx";
import { useCluster } from "../providers/cluster";
import { PublicKey, LAMPORTS_PER_SOL } from "@solana/web3.js";
import Signature from "./Signature";
function AccountsCard() {
const { accounts, idCounter } = useAccounts();
@ -156,7 +157,7 @@ const renderAccountRow = (account: Account) => {
<span className={`badge badge-soft-${statusClass}`}>{statusText}</span>
</td>
<td>
<code>{account.pubkey.toBase58()}</code>
<Signature text={account.pubkey.toBase58()} />
</td>
<td>{balance}</td>
<td>{data}</td>