Skip to content

Commit

Permalink
feat(namadillo): adding copy to clipboard feature to tx hash
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrorezende committed Jan 6, 2025
1 parent 3f5cd70 commit df21dd6
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Asset } from "@chain-registry/types";
import { Tooltip } from "@namada/components";
import { CopyToClipboardControl } from "@namada/components";
import { shortenAddress } from "@namada/utils";
import { Timeline, TransactionStep } from "App/Common/Timeline";
import { AssetImage } from "App/Transfer/AssetImage";
Expand Down Expand Up @@ -155,11 +155,11 @@ export const TransferTransactionTimeline = ({
{stepDescription[transaction.currentStep || "sign"]}
</h2>
{transaction.hash && (
<span className="text-xs text-center block text-neutral-600">
<span className="my-1 text-sm text-center block text-neutral-600">
Transaction hash:{" "}
<span className="relative group/tooltip">
<span className="inline-flex gap-1">
{shortenAddress(transaction.hash, 8, 8)}
<Tooltip>{transaction.hash}</Tooltip>
<CopyToClipboardControl value={transaction.hash} />
</span>
</span>
)}
Expand Down

0 comments on commit df21dd6

Please sign in to comment.