vulneribilty fixed
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
'use client';
|
||||
import React from 'react';
|
||||
import { DiscountProgress } from './DiscountProgress';
|
||||
import { useTranslations } from 'next-intl';
|
||||
import { ProfileForm } from './ProfileForm';
|
||||
import type { CabinetStats } from '../../lib/types';
|
||||
|
||||
@@ -7,16 +8,18 @@ interface ProfileSectionProps {
|
||||
stats: CabinetStats;
|
||||
}
|
||||
|
||||
export const ProfileSection: React.FC<ProfileSectionProps> = ({ stats }) => (
|
||||
<div className="space-y-6">
|
||||
<div>
|
||||
<h2 className="text-xl font-bold text-slate-900">Profil</h2>
|
||||
<p className="text-sm text-slate-500 mt-0.5">
|
||||
Ma'lumotlaringizni boshqaring
|
||||
</p>
|
||||
</div>
|
||||
export const ProfileSection: React.FC<ProfileSectionProps> = ({ stats }) => {
|
||||
const t = useTranslations('Cabinet');
|
||||
console.log(stats);
|
||||
return (
|
||||
<div className="space-y-6">
|
||||
<div>
|
||||
<h2 className="text-xl font-bold text-slate-900">{t('profile')}</h2>
|
||||
<p className="text-sm text-slate-500 mt-0.5">{t('profileDesc')}</p>
|
||||
</div>
|
||||
|
||||
<DiscountProgress stats={stats} />
|
||||
<ProfileForm />
|
||||
</div>
|
||||
);
|
||||
{/* <DiscountProgress stats={stats} /> */}
|
||||
<ProfileForm />
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user