From 64a64ea2e4ccaa73e4274ac57e044997f25862ff Mon Sep 17 00:00:00 2001 From: unclebill Date: Tue, 29 Mar 2022 14:14:13 +0800 Subject: [PATCH] fix(tip): change promote text in share message --- .../mask/src/plugins/NextID/components/Tip/TipDialog.tsx | 3 +++ packages/mask/src/plugins/NextID/locales/en-US.json | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/mask/src/plugins/NextID/components/Tip/TipDialog.tsx b/packages/mask/src/plugins/NextID/components/Tip/TipDialog.tsx index d77d4901b239..87aea920cfe1 100644 --- a/packages/mask/src/plugins/NextID/components/Tip/TipDialog.tsx +++ b/packages/mask/src/plugins/NextID/components/Tip/TipDialog.tsx @@ -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]) diff --git a/packages/mask/src/plugins/NextID/locales/en-US.json b/packages/mask/src/plugins/NextID/locales/en-US.json index a271b612e0ed..a9b3f95a04e6 100644 --- a/packages/mask/src/plugins/NextID/locales/en-US.json +++ b/packages/mask/src/plugins/NextID/locales/en-US.json @@ -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}}" }