year 1 ماه پیش
والد
کامیت
2a8b770e10
2فایلهای تغییر یافته به همراه6 افزوده شده و 5 حذف شده
  1. 3 2
      src/components/HeaderBack/index.tsx
  2. 3 3
      src/components/ModalPopup/WalletDescribeModal/index.tsx

+ 3 - 2
src/components/HeaderBack/index.tsx

@@ -1,6 +1,7 @@
 "use client";
 import { usePathname, useRouter } from "@/i18n/routing";
 import { useWalletStore } from "@/stores/useWalletStore";
+import { getToken } from "@/utils/Cookies";
 import clsx from "clsx";
 import { useTranslations } from "next-intl";
 import { FC, PropsWithChildren, ReactNode, useEffect, useState } from "react";
@@ -84,13 +85,13 @@ const HeaderBack: FC<PropsWithChildren<HeaderBackProps>> = ({
                 {(title || selfTitle) && <span>{title || selfTitle}</span>}
             </div>
             <div className={styles.content}>{children}</div>
-            {/* {getToken() && (
+            {getToken() && (
                 <div>
                     {!wallet.is_open_no_bonus && (
                         <img src="/img/no_bouns.png" alt="" className="h-[20px]" />
                     )}
                 </div>
-            )} */}
+            )}
 
             {!Right && (
                 <span className={styles.right} onClick={() => goPage("home")}>

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

@@ -1,6 +1,6 @@
 import { Wallet, cleanBounsApi, toggleUserBounsApi } from "@/api/user";
 import { percentage } from "@/utils/methods";
-import { Dialog, ProgressBar, Toast } from "antd-mobile";
+import { Dialog, ProgressBar, Switch, Toast } from "antd-mobile";
 import { useTranslations } from "next-intl";
 import React from "react";
 import "./style.scss";
@@ -134,7 +134,7 @@ export const BonusContent = (props: { wallet: Wallet; handleAcquire?: any }) =>
                 <li className="mt-[.06rem]">{t("bonusDesc2")}</li>
                 <li className="mt-[.06rem]">{t("bonusDesc3")}</li>
             </ul>
-            {/* <div className="mt-[.15rem] rounded-[8px] border-[1px] border-[#e540ff] bg-[#2f4cc8] shadow-[0_-10px_25px_#e641ff_inset]">
+            <div className="mt-[.15rem] rounded-[8px] border-[1px] border-[#e540ff] bg-[#2f4cc8] shadow-[0_-10px_25px_#e641ff_inset]">
                 <div className="flex flex-row items-center justify-between border-b-[1px] border-[#e540ff] p-[8px]">
                     <span className="text-[#fff]">{t("bounsTitle1")}</span>
                     <Switch
@@ -165,7 +165,7 @@ export const BonusContent = (props: { wallet: Wallet; handleAcquire?: any }) =>
                         {t("boundsBtn")}
                     </a>
                 </div>
-            </div> */}
+            </div>
             {handleAcquire && (
                 <a
                     className={`carteira-box ${wallet.is_point_transfer ? "active" : ""}`}