Skip to content

Commit

Permalink
chore: share twitter
Browse files Browse the repository at this point in the history
  • Loading branch information
camewell071 committed Jan 26, 2024
1 parent 38e537f commit abc7ac1
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/modules/Whitelist/steps/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,15 @@ const Steps = () => {
const shareUrl = getLink(user?.referral_code || '');
const content = `Welcome to the future of Bitcoin with @BVMnetwork\n\nBitcoin Virtual Machine is the first modular blockchain metaprotocol that lets you launch your Bitcoin L2 blockchain protocol in a few clicks\n\n$BVM public sale starting soon${code}\n\nJoin the allowlist`;

window.open(
`https://twitter.com/intent/tweet?url=${shareUrl}&text=${encodeURIComponent(
content,
)}`,
'_blank',
);
setTimeout(() => {
window.open(
`https://twitter.com/intent/tweet?url=${shareUrl}&text=${encodeURIComponent(
content,
)}`,
'_blank',
);
})

}

const onShareModular = () => {
Expand Down

0 comments on commit abc7ac1

Please sign in to comment.