Browse Source

feat: 修改文案

year 2 months ago
parent
commit
4a2ecd8ff6
2 changed files with 5 additions and 2 deletions
  1. 2 1
      messages/br.json
  2. 3 1
      src/components/ModalPopup/WalletDescribeModal/index.tsx

+ 2 - 1
messages/br.json

@@ -186,7 +186,8 @@
         "cancel": "cancelar",
         "sure": "A certeza",
         "clean": "Não ativar o modo de bônus?",
-        "switch": "Esvaziar o bônus ou não? ",
+        "switchOpen": "Ativar o modo sem bônus ou não? ",
+        "switchClose": "Desligue o modo sem bônus ou não? ",
         "bouns6001": "Condições não satisfeitas",
         "bouns6002": "No Bouns está aberto, não é possível receber"
     },

+ 3 - 1
src/components/ModalPopup/WalletDescribeModal/index.tsx

@@ -76,7 +76,9 @@ export const BonusContent = (props: { wallet: Wallet; handleAcquire?: any }) =>
 
     const changeValue = async (value: boolean) => {
         const confirmRes = await Dialog.confirm({
-            content: <div className="text-[#fff]">{t("switch")}</div>,
+            content: (
+                <div className="text-[#fff]">{value ? t("switchOpen") : t("switchClose")}</div>
+            ),
             confirmText: t("sure"),
             cancelText: t("cancel"),
             bodyStyle: {