From 4c239f12f9a4c340a655c5bc2dba3a02125ae5ff Mon Sep 17 00:00:00 2001 From: smanylov Date: Mon, 12 Jan 2026 13:53:12 +0700 Subject: [PATCH] add referrals page --- package.json | 2 +- src/app/[locale]/pages/refferals/page.tsx | 17 +++++++++++++++++ src/app/ui/nav-links.tsx | 2 +- src/i18n/messages/en.json | 3 ++- src/i18n/messages/ru.json | 3 ++- 5 files changed, 23 insertions(+), 4 deletions(-) create mode 100644 src/app/[locale]/pages/refferals/page.tsx diff --git a/package.json b/package.json index e9f5aef..fb5ad43 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "no-copy-frontend", - "version": "0.16.0", + "version": "0.17.0", "private": true, "scripts": { "dev": "next dev -p 2999", diff --git a/src/app/[locale]/pages/refferals/page.tsx b/src/app/[locale]/pages/refferals/page.tsx new file mode 100644 index 0000000..27248b0 --- /dev/null +++ b/src/app/[locale]/pages/refferals/page.tsx @@ -0,0 +1,17 @@ +import { useTranslations } from 'next-intl'; +import { Suspense } from 'react'; +import PageTitle from '@/app/ui/page-title'; + +export default function Page() { + const t = useTranslations('Global'); + + return ( + ...}> + + +
+ refferals +
+
+ ) +} \ No newline at end of file diff --git a/src/app/ui/nav-links.tsx b/src/app/ui/nav-links.tsx index e8f660c..024a691 100644 --- a/src/app/ui/nav-links.tsx +++ b/src/app/ui/nav-links.tsx @@ -30,7 +30,7 @@ export default function NavLinks() { }, { name: t('referral-program'), - href: '/pages/emptypage', + href: '/pages/refferals', img: 'M16 4c0-1.11.89-2 2-2s2 .89 2 2-.89 2-2 2-2-.89-2-2zm4 18v-6h2.5l-2.54-7.63A1.5 1.5 0 0 0 18.54 8H16c-.8 0-1.54.37-2 1l-3 4v2h2l2.54-3.82L16.5 18H20z' }, { diff --git a/src/i18n/messages/en.json b/src/i18n/messages/en.json index b5bc4a8..facd2fd 100644 --- a/src/i18n/messages/en.json +++ b/src/i18n/messages/en.json @@ -161,7 +161,8 @@ "error": "Error", "failed-to-download-file": "Failed to download file", "file-is-downloading": "The file is downloading", - "status": "status" + "status": "status", + "refferal-program": "Referral program" }, "Login-register-form": { "and": "and", diff --git a/src/i18n/messages/ru.json b/src/i18n/messages/ru.json index 38a59e5..426f6e7 100644 --- a/src/i18n/messages/ru.json +++ b/src/i18n/messages/ru.json @@ -161,7 +161,8 @@ "error": "Ошбка", "failed-to-download-file": "Не удалось скачать файл", "file-is-downloading": "Скачивается файл", - "status": "статус" + "status": "статус", + "refferal-program": "Реферальная программа" }, "Login-register-form": { "and": "и",