si table connected to backend

This commit is contained in:
nabijonovdavronbek619@gmail.com
2026-04-06 21:04:04 +05:00
parent b66bf9dafe
commit 3dd9157346
7 changed files with 270 additions and 107 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_SI, MOCK_PAYMENTS } from '../lib/mock';
import { MOCK_USER, MOCK_STATS, MOCK_PAYMENTS } from '../lib/mock';
import type { CabinetSection } from '../lib/types';
// ─── Lazy sections (separate JS chunks) ───────────────────────────────────────
@@ -49,7 +49,7 @@ function SectionContent({ section }: { section: CabinetSection }) {
case 'plagiat':
return <PlagiatTable />;
case 'si':
return <SiTable data={MOCK_SI} />;
return <SiTable />;
case 'payments':
return <PaymentsTable data={MOCK_PAYMENTS} />;
case 'profile':