From 75daba74cf589a3df22dfcbb067822bc08da21bf Mon Sep 17 00:00:00 2001 From: myf <> Date: Sat, 7 May 2022 15:44:53 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E9=83=A8=E5=88=86bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/locales/zh-CN.json | 3 +- src/config/localization/translations.json | 3 +- src/views/Board/index.tsx | 2 +- src/views/Referral/components/BuyActions.tsx | 4 +-- src/views/Referral/components/BuyNftModal.tsx | 11 +++--- src/views/Referral/components/Connected.tsx | 11 +++--- src/views/Referral/components/Regimental.tsx | 35 +++++-------------- 7 files changed, 24 insertions(+), 45 deletions(-) diff --git a/public/locales/zh-CN.json b/public/locales/zh-CN.json index 99af725..876a5a0 100644 --- a/public/locales/zh-CN.json +++ b/public/locales/zh-CN.json @@ -217,7 +217,7 @@ "Prize Pot": "奖金池", "Winners": "获胜者", "No. Matched": "中的号码数", - "Approve Contract": "批准合约", + "Approve %coin% Contract": "批准 %coin% 合约", "%asset% staked": "%asset% 已质押", "Total Value Locked": "锁定的总价值", "Across all LPs and Syrup Pools": "在所有 LP 和 Syrup 资金池中", @@ -1117,6 +1117,7 @@ "Enter a keyword search": "输入关键字搜索", "By using the invitation at the top right of the page, new users can be invited to enter and obtained after users purchase coins": "使用页面右上方的邀请,可邀请新用户进入,并在用户购买币后获得", "The commission": "的提成!", + "footer %number% text": "使用页面右上方的邀请,可邀请新用户进入,并在用户购买币后获得 %number% 的提成!", "market value": "市值", "Loaded all": "已加载全部", "Insufficient Balance": "余额不足", diff --git a/src/config/localization/translations.json b/src/config/localization/translations.json index c667abc..7d872c5 100644 --- a/src/config/localization/translations.json +++ b/src/config/localization/translations.json @@ -217,7 +217,7 @@ "Prize Pot": "Prize Pot", "Winners": "Winners", "No. Matched": "No. Matched", - "Approve Contract": "Approve Contract", + "Approve %coin% Contract": "Approve %coin% Contract", "%asset% staked": "%asset% staked", "Total Value Locked": "Total Value Locked", "Across all LPs and Syrup Pools": "Across all LPs and Syrup Pools", @@ -1246,6 +1246,7 @@ "Enter a keyword search": "Enter a keyword search", "By using the invitation at the top right of the page, new users can be invited to enter and obtained after users purchase coins": "By using the invitation at the top right of the page, new users can be invited to enter and obtained after users purchase coins", "The commission": "The commission!", + "footer %number% text": "By using the invitation at the top right of the page, new users can be invited to enter and obtained after users purchase coins %number% The commission!", "market value": "market value", "Loaded all": "Loaded all", "HCC Currency amount": "HCC Currency amount", diff --git a/src/views/Board/index.tsx b/src/views/Board/index.tsx index 51ac545..36287b5 100644 --- a/src/views/Board/index.tsx +++ b/src/views/Board/index.tsx @@ -89,7 +89,7 @@ const Boards: React.FC = () => { if (item.pid === 1) { setBoardNum(item.num) } else if (item.pid === 2) { - setHolder(item.waitWithdrawAmount) + setHolder(item.num) } }) setTotalAmount(total) diff --git a/src/views/Referral/components/BuyActions.tsx b/src/views/Referral/components/BuyActions.tsx index 39dae44..d1ad26e 100644 --- a/src/views/Referral/components/BuyActions.tsx +++ b/src/views/Referral/components/BuyActions.tsx @@ -101,7 +101,7 @@ const BuyActions: React.FC = () => { handleApprove(onUsdtApprove) }} > - {t('Approve %coin% Contract', { coin: 'usdt' })} + {t('Approve %coin% Contract', { coin: 'USDT' })} )} @@ -112,7 +112,7 @@ const BuyActions: React.FC = () => { handleApprove(onHccApprove) }} > - {t('Approve %coin% Contract', { coin: 'hcc' })} + {t('Approve %coin% Contract', { coin: 'HCC' })} )} {allowanceList?.usdt && allowanceList.hcc ? ( diff --git a/src/views/Referral/components/BuyNftModal.tsx b/src/views/Referral/components/BuyNftModal.tsx index abee484..1f6a53b 100644 --- a/src/views/Referral/components/BuyNftModal.tsx +++ b/src/views/Referral/components/BuyNftModal.tsx @@ -51,10 +51,10 @@ const BuyNftModal: React.FC = ({ onDismiss }) => { const referralCommanderConfigInfo = useReferralCommanderConfigInfo() const referralRewardInfo = useReferralNormalConfigInfo() return ( - + = ({ onDismiss }) => { /> - - + + diff --git a/src/views/Referral/components/Connected.tsx b/src/views/Referral/components/Connected.tsx index 0a92932..dc135fd 100644 --- a/src/views/Referral/components/Connected.tsx +++ b/src/views/Referral/components/Connected.tsx @@ -58,7 +58,6 @@ const ConnectedCom: React.FC = () => { const [onBuyModal] = useModal() const referralNormalConfigInfo = useReferralNormalConfigInfo() const referralRewardInfo = useReferralRewardInfo() - const referralCommanderConfigInfo = useReferralCommanderConfigInfo() const [loading, setLoading] = useState(false) const withdraw = useWithdraw() const { toastSuccess } = useToast() @@ -76,11 +75,11 @@ const ConnectedCom: React.FC = () => { <> - - + + @@ -96,9 +95,7 @@ const ConnectedCom: React.FC = () => { {t('Upgrade commander')} - {`${t( - 'By using the invitation at the top right of the page, new users can be invited to enter and obtained after users purchase coins', - )}${formatDivNumber(referralCommanderConfigInfo?.dividendFirst)}%${t('The commission')}`} + {t('footer %number% text', { number: `${referralNormalConfigInfo?.dividendFirst || 0}%` })} {/* {t('each time')} {t('last bid')} {t('commission fee')} */} diff --git a/src/views/Referral/components/Regimental.tsx b/src/views/Referral/components/Regimental.tsx index 51f3192..3df149f 100644 --- a/src/views/Referral/components/Regimental.tsx +++ b/src/views/Referral/components/Regimental.tsx @@ -106,8 +106,8 @@ const RegimentalCom: React.FC = () => { <> - - + + { /> - {/* - - - - - */} @@ -156,9 +137,11 @@ const RegimentalCom: React.FC = () => { {/* {t('Upgrade commander')} */} - {`${t( - 'By using the invitation at the top right of the page, new users can be invited to enter and obtained after users purchase coins', - )}${formatDivNumber(referralCommanderConfigInfo?.dividendFirst)}%${t('The commission')}`} + + {t('footer %number% text', { + number: `${referralCommanderConfigInfo?.dividendFirst || 0}%`, + })} + {/* {t('each time')} {t('last bid')} {t('commission fee')} */}