Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions packages/mask/src/plugins/NextID/components/Tip/TipDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,17 +90,20 @@ export function TipDialog({ open = false, onClose }: TipDialogProps) {

const isTokenTip = tipType === TipType.Token
const shareLink = useMemo(() => {
const promote = t.tip_mask_promote()
const message = isTokenTip
? t.tip_token_share_post({
amount,
symbol: token?.symbol || 'token',
recipientSnsId,
recipient,
promote,
})
: t.tip_nft_share_post({
name: erc721Contract?.name || '',
recipientSnsId,
recipient,
promote,
})
return activatedSocialNetworkUI.utils.getShareLinkURL?.(message)
}, [amount, isTokenTip, erc721Contract?.name, token, recipient, recipientSnsId, t])
Expand Down
5 changes: 3 additions & 2 deletions packages/mask/src/plugins/NextID/locales/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
"tip_connect_wallet": "Connect Wallet",
"search": "Search",
"tip_contracts": "Contracts",
"tip_token_share_post": "I just tipped {{amount}} {{symbol}} to @{{recipientSnsId}}'s wallet address {{recipient}}\n\nInstall https://mask.io/download-links to send my first tip.",
"tip_nft_share_post": "I just tipped a {{name}} to @{{recipientSnsId}}'s wallet address {{recipient}}\n\nInstall https://mask.io/download-links to send my first tip."
"tip_mask_promote": "Install https://mask.io/download-links to send your first tip.",
"tip_token_share_post": "I just tipped {{amount}} {{symbol}} to @{{recipientSnsId}}'s wallet address {{recipient}}\n\n{{promote}}",
"tip_nft_share_post": "I just tipped a {{name}} to @{{recipientSnsId}}'s wallet address {{recipient}}\n\n{{promote}}"
}