Skip to content

Commit

Permalink
Allow copying transactions to clipboard
Browse files Browse the repository at this point in the history
  • Loading branch information
KaffinPX committed Jun 28, 2024
1 parent 95780b7 commit 5b60fa7
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/pages/Wallet/Send/Submit.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { NetworkIcon, PackageCheckIcon } from "lucide-react"
import { NetworkIcon, PackageCheckIcon, CopyIcon } from "lucide-react"
import {
DialogContent,
DialogDescription,
Expand All @@ -20,7 +20,14 @@ export default function Submit ({ transactions, onSubmitted }: {
return (
<DialogContent>
<DialogHeader>
<DialogTitle>Submit Transaction</DialogTitle>
<DialogTitle>
Submit Transaction
<Button variant="link" size="icon" className="h-min w-8" onClick={() => {
navigator.clipboard.writeText(JSON.stringify(transactions))
}}>
<CopyIcon size={16}/>
</Button>
</DialogTitle>
<DialogDescription>
Submit your signed transaction(s) to network, miners should add it to a block.
</DialogDescription>
Expand Down

0 comments on commit 5b60fa7

Please sign in to comment.