profile page connected to backend and PATCH added, plagiatCheck updated and sertificate generate updated base backend types
This commit is contained in:
@@ -1,17 +1,13 @@
|
||||
import React from 'react';
|
||||
import { DiscountProgress } from './DiscountProgress';
|
||||
import { ProfileForm } from './ProfileForm';
|
||||
import type { CabinetStats, UserProfile } from '../../lib/types';
|
||||
import type { CabinetStats } from '../../lib/types';
|
||||
|
||||
interface ProfileSectionProps {
|
||||
user: UserProfile;
|
||||
stats: CabinetStats;
|
||||
}
|
||||
|
||||
export const ProfileSection: React.FC<ProfileSectionProps> = ({
|
||||
user,
|
||||
stats,
|
||||
}) => (
|
||||
export const ProfileSection: React.FC<ProfileSectionProps> = ({ stats }) => (
|
||||
<div className="space-y-6">
|
||||
<div>
|
||||
<h2 className="text-xl font-bold text-slate-900">Profil</h2>
|
||||
@@ -21,6 +17,6 @@ export const ProfileSection: React.FC<ProfileSectionProps> = ({
|
||||
</div>
|
||||
|
||||
<DiscountProgress stats={stats} />
|
||||
<ProfileForm initial={user} />
|
||||
<ProfileForm />
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user