profile page connected to backend and PATCH added, plagiatCheck updated and sertificate generate updated base backend types
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user