diff --git a/lang/default.json b/lang/default.json index b1b266c2af..4a2de3e1c1 100644 --- a/lang/default.json +++ b/lang/default.json @@ -646,6 +646,9 @@ "defaultMessage": "commented broadcast in {circleName}", "description": "src/components/Notice/CircleNotice/CircleNewBroadcastComments.tsx" }, + "Eb1U+/": { + "defaultMessage": "Topped up successfully" + }, "EoeUjA": { "defaultMessage": "You do not have permission to perform this operation", "description": "FORBIDDEN_BY_STATE" diff --git a/lang/en.json b/lang/en.json index 30ee492784..e637bed696 100644 --- a/lang/en.json +++ b/lang/en.json @@ -646,6 +646,9 @@ "defaultMessage": "commented broadcast in {circleName}", "description": "src/components/Notice/CircleNotice/CircleNewBroadcastComments.tsx" }, + "Eb1U+/": { + "defaultMessage": "Topped up successfully" + }, "EoeUjA": { "defaultMessage": "You do not have permission to perform this operation", "description": "FORBIDDEN_BY_STATE" diff --git a/lang/zh-Hans.json b/lang/zh-Hans.json index 88861c242d..5149a529ee 100644 --- a/lang/zh-Hans.json +++ b/lang/zh-Hans.json @@ -646,6 +646,9 @@ "defaultMessage": "在 {circleName} 的广播中留言 ", "description": "src/components/Notice/CircleNotice/CircleNewBroadcastComments.tsx" }, + "Eb1U+/": { + "defaultMessage": "储值成功" + }, "EoeUjA": { "defaultMessage": "你无权限进行该操作", "description": "FORBIDDEN_BY_STATE" diff --git a/lang/zh-Hant.json b/lang/zh-Hant.json index f5d7b6c376..db795fbdd1 100644 --- a/lang/zh-Hant.json +++ b/lang/zh-Hant.json @@ -646,6 +646,9 @@ "defaultMessage": "在 {circleName} 的廣播中留言 ", "description": "src/components/Notice/CircleNotice/CircleNewBroadcastComments.tsx" }, + "Eb1U+/": { + "defaultMessage": "儲值成功" + }, "EoeUjA": { "defaultMessage": "你無權限進行該操作", "description": "FORBIDDEN_BY_STATE" diff --git a/src/common/enums/text.ts b/src/common/enums/text.ts index b906c606c0..919ad8bdd8 100644 --- a/src/common/enums/text.ts +++ b/src/common/enums/text.ts @@ -174,7 +174,6 @@ export const TEXT = { successRegister: '註冊成功', successResetPassword: '密碼重置成功', successSetSupportSetting: '支持反饋設置成功', - successTopUp: '儲值成功', successUnblock: '已取消封鎖。該用戶現在可以評論你的作品和圍爐。', successUploadImage: '圖片上傳成功', supportRequestDescription: @@ -198,7 +197,6 @@ export const TEXT = { theFirstSupporter: '第一個支持了這篇作品', thinkAboutIt: '考慮一下', topic: '話題', - topUp: '儲值', toYourIPNSPage: '指向到你的 IPNS 頁面', understood: '我知道了', unfollow: '取消追蹤', @@ -397,7 +395,6 @@ export const TEXT = { successRegister: '注册成功', successResetPassword: '密码重置成功', successSetSupportSetting: '支持反馈设置成功', - successTopUp: '储值成功', successUnblock: '已取消屏蔽。该用户现在可以评论你的作品和围炉。', successUploadImage: '图片上传成功', supportRequestDescription: @@ -421,7 +418,6 @@ export const TEXT = { theFirstSupporter: '第一个支持了这篇作品', thinkAboutIt: '考虑一下', topic: '话题', - topUp: '储值', toYourIPNSPage: '指向到你的 IPNS 页面', understood: '我知道了', unfollow: '取消追踪', @@ -636,7 +632,6 @@ export const TEXT = { successRegister: 'Thank you for registering', successResetPassword: 'Password successfully changed.', successSetSupportSetting: 'Support setting updated', - successTopUp: 'Topped up successfully', successUnblock: 'User unblocked. User can now comment on your articles.', successUploadImage: 'Image uploaded', supportRequestDescription: @@ -661,7 +656,6 @@ export const TEXT = { theFirstSupporter: 'was the first to support this article', thinkAboutIt: 'Maybe later', topic: 'Topic', - topUp: 'Top Up', toYourIPNSPage: 'to your IPNS page', unblockSuccess: 'User unblocked and can reply your articles now.', uncollapseComment: 'Unfold', diff --git a/src/components/Forms/PaymentForm/AddCredit/index.tsx b/src/components/Forms/PaymentForm/AddCredit/index.tsx index 10c6a5691f..42abf73c12 100644 --- a/src/components/Forms/PaymentForm/AddCredit/index.tsx +++ b/src/components/Forms/PaymentForm/AddCredit/index.tsx @@ -242,7 +242,14 @@ const BaseAddCredit: React.FC = ({ if (completed) { return ( <> - } /> + + } + /> diff --git a/src/components/Forms/PaymentForm/PayTo/SetAmount/SubmitButton.tsx b/src/components/Forms/PaymentForm/PayTo/SetAmount/SubmitButton.tsx index 4e99369d86..bda74da748 100644 --- a/src/components/Forms/PaymentForm/PayTo/SetAmount/SubmitButton.tsx +++ b/src/components/Forms/PaymentForm/PayTo/SetAmount/SubmitButton.tsx @@ -60,7 +60,7 @@ const HKDSubmitButton: React.FC = ({ if (isBalanceInsufficient) { const props = { mode, - text: 'topUp', + text: , form: formId, } return ( diff --git a/src/views/Me/Wallet/Balance/FiatCurrency.tsx b/src/views/Me/Wallet/Balance/FiatCurrency.tsx index 802d781f8e..ed4fc3ebb2 100644 --- a/src/views/Me/Wallet/Balance/FiatCurrency.tsx +++ b/src/views/Me/Wallet/Balance/FiatCurrency.tsx @@ -43,7 +43,7 @@ const TopUpItem = ({ return ( } + text={} icon={} onClick={() => { if (hasEmail) { diff --git a/src/views/Me/Wallet/Buttons/index.tsx b/src/views/Me/Wallet/Buttons/index.tsx index 19ce731e50..9e5bb8b5ce 100644 --- a/src/views/Me/Wallet/Buttons/index.tsx +++ b/src/views/Me/Wallet/Buttons/index.tsx @@ -1,5 +1,7 @@ +import { FormattedMessage } from 'react-intl' + import { analytics } from '~/common/utils' -import { AddCreditDialog, Dialog, Translate, useFeatures } from '~/components' +import { AddCreditDialog, Dialog, useFeatures } from '~/components' import PayoutButton from './PayoutButton' import styles from './styles.module.css' @@ -17,7 +19,7 @@ const Buttons: React.FC = ({ canPayout, hasStripeAccount }) => { {({ openDialog }) => ( } + text={} onClick={() => { openDialog() analytics.trackEvent('click_button', { type: 'top_up' })