perf: defer recharge modal bundle

This commit is contained in:
2026-06-05 20:24:21 +08:00
parent 98058236e6
commit e3bdd10156
5 changed files with 56 additions and 6 deletions
@@ -1,5 +1,6 @@
import { CheckCircleOutlined, CloseOutlined, CrownOutlined, RocketOutlined } from "@ant-design/icons";
import { useMemo, useState, type ReactNode } from "react";
import "../../styles/components/recharge-modal.css";
import { keyServerClient, type RechargeOrderResult } from "../../api/keyServerClient";
import { toast } from "../toast/toastStore";
@@ -116,7 +117,7 @@ const paymentMethods: Array<{ id: PaymentMethod; label: string; hint: string }>
{ id: "bank", label: "对公转账", hint: "企业客户可联系客服确认" },
];
interface RechargeModalProps {
export interface RechargeModalProps {
open: boolean;
onClose: () => void;
currentBalance?: number;