{t('codeOfHonor.title')}
@@ -45,22 +20,11 @@ export function CodeOfHonor() {
documentsLink: (chunks) =>
{chunks},
paragraph: (chunks) =>
{chunks},
})}
- {user?.codeOfHonorSignDate ? (
+ {user?.codeOfHonorSignDate && (
{t('codeOfHonor.agreement')}
{user?.codeOfHonorSignDate}
- ) : (
-
}
- iconPosition="end"
- >
- {t('button.agree')}
-
)}
);
diff --git a/src/app/[locale]/(private)/profile/page.tsx b/src/app/[locale]/(private)/profile/page.tsx
index a00448d6..6f6c6998 100644
--- a/src/app/[locale]/(private)/profile/page.tsx
+++ b/src/app/[locale]/(private)/profile/page.tsx
@@ -1,9 +1,21 @@
import { getContacts, getContactTypes } from '@/actions/profile.actions';
-import { Profile } from '@/app/[locale]/(private)/profile/profile';
import { getTranslations } from 'next-intl/server';
+import { SubLayout } from '@/app/[locale]/(private)/sub-layout';
+import { getUserDetails } from '@/actions/auth.actions';
+import { Heading1 } from '@/components/typography/headers';
+import { Paragraph } from '@/components/typography/paragraph';
+import { InfoBlock } from '@/app/[locale]/(private)/profile/components/info-block';
+import { Card, CardContent } from '@/components/ui/card';
+import { Contacts } from '@/app/[locale]/(private)/profile/components/contacts';
+import { Show } from '@/components/utils/show';
+import { IntellectAgreement } from '@/app/[locale]/(private)/profile/components/intellect-agreement';
+import { IntellectPublicationInfo } from '@/app/[locale]/(private)/profile/components/intellect-publication-info';
+import { CodeOfHonor } from '@/app/[locale]/(private)/profile/components/code-of-honor';
+
+const INTL_NAMESPACE = 'private.profile';
export async function generateMetadata() {
- const t = await getTranslations({ namespace: 'private.profile' });
+ const t = await getTranslations(INTL_NAMESPACE);
return {
title: t('title'),
@@ -11,8 +23,34 @@ export async function generateMetadata() {
}
export default async function Page() {
+ const t = await getTranslations(INTL_NAMESPACE);
+
+ const user = await getUserDetails();
+
const contacts = await getContacts();
const contactTypes = await getContactTypes();
- return