Skip to content

Commit

Permalink
copy connected to clipboard
Browse files Browse the repository at this point in the history
  • Loading branch information
fistasolutions committed Oct 30, 2024
1 parent 6d04d80 commit fbd1bee
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ const ConnectWalletAdmin = () => {
<Container fluid className="d-flex flex-column text-light bg-dark" style={{ position: 'relative' }}>
<div className="d-flex align-items-center">
<BackButton redirectURL={'/'} />
<Button onClick={(e) => {
<Button onClick={async (e) => {
const account:any = connectedAccount
await navigator.clipboard.writeText(account);
if (CONFIG.network === "testnet") {
window.open(`https://testnet.ccdscan.io/?dcount=1&dentity=account&daddress=${connectedAccount}`, "_blank")
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ const Proof = () => {
{/* <BackButton redirectURL={'/tweetPost'} /> */}
<div className="d-flex align-items-center">
<BackButton redirectURL={'/tweetPost'} />
<Button onClick={(e) => {
<Button onClick={async (e) => {
const account: any = connectedAccount
await navigator.clipboard.writeText(account);
if (CONFIG.network === "testnet") {
window.open(`https://testnet.ccdscan.io/?dcount=1&dentity=account&daddress=${connectedAccount}`, "_blank")
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ const TweetPost = () => {
<Container fluid className="d-flex flex-column min-vh-100 text-light bg-dark" style={{ position: 'relative' }}>
<div className="d-flex align-items-center">
<BackButton redirectURL={'/connectWallet'} />
<Button onClick={(e) => {
<Button onClick={async (e) => {
const account:any = connectedAccount
await navigator.clipboard.writeText(account);
if (CONFIG.network === "testnet") {
window.open(`https://testnet.ccdscan.io/?dcount=1&dentity=account&daddress=${connectedAccount}`, "_blank")
} else {
Expand Down

0 comments on commit fbd1bee

Please sign in to comment.