|
@@ -13,7 +13,7 @@ import { useWalletStore } from "@/stores/useWalletStore";
|
|
|
import "@/styles/deposit.scss";
|
|
|
import { neReg } from "@/utils";
|
|
|
import { server } from "@/utils/client";
|
|
|
-import { Button, Dialog, Form, Input, Toast } from "antd-mobile";
|
|
|
+import { Button, Form, Input, Toast } from "antd-mobile";
|
|
|
import { FormInstance } from "antd-mobile/es/components/form";
|
|
|
import clsx from "clsx";
|
|
|
import { useTranslations } from "next-intl";
|
|
@@ -115,19 +115,19 @@ const DepositData: FC<Props> = (props) => {
|
|
|
setCurrentProduct(result);
|
|
|
};
|
|
|
const onFinish = async (values: any) => {
|
|
|
- if (wallet?.is_open_no_bonus) {
|
|
|
- const confirmRes = await Dialog.confirm({
|
|
|
- content: <div className="text-[#fff]">{t(`ProfilePage.depositeWarn`)}</div>,
|
|
|
- confirmText: t("ProfilePage.sure"),
|
|
|
- cancelText: t("ProfilePage.cancel"),
|
|
|
- bodyStyle: {
|
|
|
- backgroundColor: "#373737",
|
|
|
- color: "#fff",
|
|
|
- },
|
|
|
- bodyClassName: "customConfirm",
|
|
|
- });
|
|
|
- if (!confirmRes) return;
|
|
|
- }
|
|
|
+ // if (wallet?.is_open_no_bonus) {
|
|
|
+ // const confirmRes = await Dialog.confirm({
|
|
|
+ // content: <div className="text-[#fff]">{t(`ProfilePage.depositeWarn`)}</div>,
|
|
|
+ // confirmText: t("ProfilePage.sure"),
|
|
|
+ // cancelText: t("ProfilePage.cancel"),
|
|
|
+ // bodyStyle: {
|
|
|
+ // backgroundColor: "#373737",
|
|
|
+ // color: "#fff",
|
|
|
+ // },
|
|
|
+ // bodyClassName: "customConfirm",
|
|
|
+ // });
|
|
|
+ // if (!confirmRes) return;
|
|
|
+ // }
|
|
|
|
|
|
if (!amount) return Toast.show({ content: t("form.amount") });
|
|
|
const params = {
|