|
@@ -1,6 +1,7 @@
|
|
|
"use client";
|
|
|
import { claimActivityReward, getJackpotInfo, GetJackpotResponse } from "@/api/activity";
|
|
|
import GlobalNotify from "@/components/ModalPopup/GlobalNotifyModal";
|
|
|
+import { useRouter } from "@/i18n/routing";
|
|
|
import { formatAmount } from "@/utils";
|
|
|
import { Toast } from "antd-mobile";
|
|
|
import BigNumber from "bignumber.js";
|
|
@@ -42,6 +43,7 @@ import styles from "./style.module.scss";
|
|
|
// }, []);
|
|
|
|
|
|
const Jackpot: React.FC = () => {
|
|
|
+ const router = useRouter();
|
|
|
const searchParams = useSearchParams();
|
|
|
const t = useTranslations();
|
|
|
const [actKey, setActKey] = React.useState<number | string>(2);
|
|
@@ -187,9 +189,19 @@ const Jackpot: React.FC = () => {
|
|
|
}
|
|
|
};
|
|
|
|
|
|
+ const goDeposit = () => {
|
|
|
+ router.push("/deposit");
|
|
|
+ };
|
|
|
+
|
|
|
return (
|
|
|
<div className={styles.main}>
|
|
|
<div className={styles.container}>
|
|
|
+ <div
|
|
|
+ className={clsx("absolute right-[0] top-[1rem] z-[3] w-[1rem]")}
|
|
|
+ onClick={goDeposit}
|
|
|
+ >
|
|
|
+ <img src="/jackpot/recarga1.png" alt="" />
|
|
|
+ </div>
|
|
|
<div className={styles.tab}>
|
|
|
{infoData?.list &&
|
|
|
Object.keys(infoData?.list).map((key: string | number, idx: number) => {
|