|
|
@@ -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);
|