This commit is contained in:
nabijonovdavronbek619@gmail.com
2026-04-01 19:20:00 +05:00
parent 7b76901f5f
commit dfa3e14d58
8 changed files with 232 additions and 31 deletions

View File

@@ -4,11 +4,19 @@ import { useTranslations } from 'next-intl';
import { useHistory } from '../lib/useHistory';
import { HistoryTable } from './historyTable';
import { Pagination } from './pagination';
import { useQuery } from '@tanstack/react-query';
import { apiRequest } from '@/shared/request/apiRequest';
import { links } from '@/shared/request/links';
// ─── Page Header ───────────────────────────────────────────────────────────────
const PageHeader: React.FC = () => {
const t = useTranslations('HistoryPage');
const { data } = useQuery({
queryKey: ['history'],
queryFn: () => apiRequest('GET', links.history),
});
console.log('History data:', data); // Debugging log
return (
<div className="mb-6">