From fa60a79241d1e36af84ed0d938abe0aa4db83b35 Mon Sep 17 00:00:00 2001 From: smanylov Date: Wed, 11 Mar 2026 10:53:09 +0700 Subject: [PATCH] return marking-document pag for d2c --- package.json | 2 +- src/app/[locale]/pages/marking-document/page.tsx | 15 --------------- src/app/ui/navigation/nav-link-dropdown.tsx | 7 +------ src/app/ui/navigation/nav-links.tsx | 2 +- 4 files changed, 3 insertions(+), 23 deletions(-) diff --git a/package.json b/package.json index 2cb9933..052d63c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "no-copy-frontend", - "version": "0.56.0", + "version": "0.57.0", "private": true, "scripts": { "dev": "next dev -p 2999", diff --git a/src/app/[locale]/pages/marking-document/page.tsx b/src/app/[locale]/pages/marking-document/page.tsx index 9e4b571..818d5f7 100644 --- a/src/app/[locale]/pages/marking-document/page.tsx +++ b/src/app/[locale]/pages/marking-document/page.tsx @@ -3,26 +3,11 @@ import UploadSectionFile from '@/app/components/UploadSectionFile'; import { getAllowedFilesExtensions } from '@/app/actions/fileUpload'; import PageTitleColorFrame from '@/app/ui/page-title-color-frame'; import ProtectionStatistic from '@/app/ui/marking-page/new/protection-statistic'; -import { fetchReferralUserStats } from '@/app/actions/referralsActions'; -import { getQueryClient } from '@/app/providers/getQueryClient'; export default async function Page() { const FILE_TYPE = "document"; const { file_extension, max_file_size } = await getAllowedFilesExtensions(FILE_TYPE); - const queryClient = getQueryClient(); - - try { - const data = await queryClient.fetchQuery({ - queryKey: ['referralUserStats'], - queryFn: fetchReferralUserStats, - }); - if (data?.referralLink) { - return null; - } - } catch (error) { - } - return (
    {links.map((link) => { - if (referralLink && link.name === 'document-marking') { - return null; - } return ( {t('home')}

    - + {links.map((link) => { if (!referralLink && link.name === 'referral-program') {