profile page connected to backend and PATCH added, plagiatCheck updated and sertificate generate updated base backend types

This commit is contained in:
nabijonovdavronbek619@gmail.com
2026-04-07 21:30:27 +05:00
parent 50a8d6dbd7
commit c61182adcf
15 changed files with 208 additions and 198 deletions

View File

@@ -45,7 +45,7 @@ const ProfileSection = dynamic(
function SectionContent({ section }: { section: CabinetSection }) {
switch (section) {
case 'dashboard':
return <Dashboard userName={MOCK_USER.name} />;
return <Dashboard userName={MOCK_USER.first_name} />;
case 'plagiat':
return <PlagiatTable />;
case 'si':
@@ -53,7 +53,7 @@ function SectionContent({ section }: { section: CabinetSection }) {
case 'payments':
return <PaymentsTable />;
case 'profile':
return <ProfileSection user={MOCK_USER} stats={MOCK_STATS} />;
return <ProfileSection stats={MOCK_STATS} />;
}
}
@@ -71,7 +71,7 @@ const FADE = {
export const CabinetLayout: React.FC = () => {
const { activeSection, navigate, isSidebarOpen, toggleSidebar } =
useCabinet();
const fullName = `${MOCK_USER.name} ${MOCK_USER.surname}`;
const fullName = `${MOCK_USER.first_name} ${MOCK_USER.last_name}`;
return (
<div className="flex bg-slate-50 min-h-screen">