payments history table connected to backend

This commit is contained in:
nabijonovdavronbek619@gmail.com
2026-04-07 12:46:37 +05:00
parent 88f22a342a
commit df485b5797
4 changed files with 183 additions and 103 deletions

View File

@@ -6,7 +6,7 @@ import { Sidebar } from './Sidebar';
import { CabinetNav } from './CabinetNav';
import { Dashboard } from './dashboard';
import { useCabinet } from '../lib/hooks/useCabinet';
import { MOCK_USER, MOCK_STATS, MOCK_PAYMENTS } from '../lib/mock';
import { MOCK_USER, MOCK_STATS } from '../lib/mock';
import type { CabinetSection } from '../lib/types';
// ─── Lazy sections (separate JS chunks) ───────────────────────────────────────
@@ -51,7 +51,7 @@ function SectionContent({ section }: { section: CabinetSection }) {
case 'si':
return <SiTable />;
case 'payments':
return <PaymentsTable data={MOCK_PAYMENTS} />;
return <PaymentsTable />;
case 'profile':
return <ProfileSection user={MOCK_USER} stats={MOCK_STATS} />;
}