Browse Source

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

- 删除未使用的useAuth hook及其token变量
- 清理组件依赖,减少不必要的资源加载
yourname 3 months ago
parent
commit
dfd4d211ee
1 changed files with 0 additions and 2 deletions
  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);