Selaa lähdekoodia

♻️ refactor(recharge): remove unused auth token in recharge records component

- 删除未使用的useAuth hook及其token变量
- 清理组件依赖,减少不必要的资源加载
yourname 3 kuukautta sitten
vanhempi
sitoutus
dfd4d211ee
1 muutettua tiedostoa jossa 0 lisäystä ja 2 poistoa
  1. 0 2
      src/client/home/components/RechargeRecords.tsx

+ 0 - 2
src/client/home/components/RechargeRecords.tsx

@@ -6,7 +6,6 @@ import { Alert, AlertDescription } from '@/client/components/ui/alert';
 import { Clock, History, AlertCircle } from 'lucide-react';
 import { format } from 'date-fns';
 import { zhCN } from 'date-fns/locale';
-import { useAuth } from '@/client/home/hooks/AuthProvider';
 
 interface PaymentRecord {
   id: string;
@@ -24,7 +23,6 @@ interface RechargeRecordsProps {
 }
 
 export default function RechargeRecords({ userId }: RechargeRecordsProps) {
-  const { token } = useAuth();
   const [records, setRecords] = useState<PaymentRecord[]>([]);
   const [loading, setLoading] = useState(true);
   const [error, setError] = useState<string | null>(null);