Skip to content

Commit

Permalink
chore: update ui
Browse files Browse the repository at this point in the history
  • Loading branch information
camewell071 committed Jan 15, 2024
1 parent adc074e commit ee0d83f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/modules/Whitelist/HistoryMessage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const HistoryMessage = () => {
<Flex flexDirection="column" w="100%" alignItems="center">
<p>You've spent <span>{formatCurrency(amount.fee, 0)} BTC</span> for gas fees across <span>{formatCurrency(amount.txsCount, 0)} transactions</span></p>
<p>Congratulations, you've earned <span>{formatCurrency(amount.point, 0)} points</span></p>
<Button onClick={shareTwitterSignature}>Share now</Button>
<Button onClick={() => shareTwitterSignature({ fee: amount.fee, point: amount.point, txsCount: amount.txsCount })}>Share now</Button>
</Flex>
) : (
<p>
Expand Down
1 change: 1 addition & 0 deletions src/modules/Whitelist/steps/Step/styles.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@
font-size: 14px;
font-weight: 400;
line-height: 140%;
white-space: pre-wrap;
}

&_action {
Expand Down
2 changes: 1 addition & 1 deletion src/modules/Whitelist/steps/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ const Steps = () => {
},
{
title: 'Verify your Bitcoin wallet',
desc: 'The more gas you paid on Bitcoin, the higher the multiplier you receive!',
desc: 'Upgrade Your Multiplier\n' + 'The more gas you paid on Bitcoin, the higher the multiplier you receive!',
actionText: 'Connect wallet',
actionHandle: onToggleConnect,
isActive: !!token,
Expand Down
8 changes: 6 additions & 2 deletions src/utils/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,15 @@ export const getLink = (referralCode?: string) => {
return `${window.location.origin}${referral}`;
};

export const shareTwitterSignature = () => {
export const shareTwitterSignature = (params: {
fee: string | number,
txsCount: string | number,
point: string | number,
}) => {
const shareUrl = getLink('');
let content = '';

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.`;
content = `Verified my wallet on @bvmnetwork and upped my game! Paid ${params.fee} BTC in gas over ${params.txsCount} transactions and snagged ${params.point} points from bvm.network for their upcoming public sale!`;

window.open(
`https://twitter.com/intent/tweet?url=${shareUrl}&text=${encodeURIComponent(
Expand Down

0 comments on commit ee0d83f

Please sign in to comment.