payments history table connected to backend
This commit is contained in:
@@ -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} />;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user