From 25a6f3e7295cfd1e26aaabe876f3e1fe52610d47 Mon Sep 17 00:00:00 2001 From: Mahyar Khanbolooki Date: Sun, 27 Jul 2025 22:04:14 +0330 Subject: [PATCH] add: notifications page --- src/app/[name]/notifications/page.tsx | 42 +++++++++++++++++++++++++++ src/app/layout.tsx | 2 +- src/locales/fa/notifications.json | 6 ++++ 3 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 src/app/[name]/notifications/page.tsx create mode 100644 src/locales/fa/notifications.json diff --git a/src/app/[name]/notifications/page.tsx b/src/app/[name]/notifications/page.tsx new file mode 100644 index 0000000..2c88291 --- /dev/null +++ b/src/app/[name]/notifications/page.tsx @@ -0,0 +1,42 @@ +'use client'; + +import { ef } from '@/lib/helpers/utfNumbers'; +import { Trash } from 'iconsax-react'; +import React from 'react' +import { useTranslation } from 'react-i18next'; + +type Props = object + +export default function NotificationsIndex({ }: Props) { + const { t } = useTranslation('notifications') + + return ( +
+

{t('Heading')}

+ + +
+ ) +} \ No newline at end of file diff --git a/src/app/layout.tsx b/src/app/layout.tsx index dc2a564..5e77bc3 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -11,7 +11,7 @@ export const metadata: Metadata = { description: 'Webapp dashboard', } -const i18nNamespaces = ['common', 'menu', 'orders', 'auth', "rating", "chat"]; +const i18nNamespaces = ['common', 'menu', 'orders', 'auth', "rating", "chat", "notifications"]; export default async function RootLayout({ children, diff --git a/src/locales/fa/notifications.json b/src/locales/fa/notifications.json new file mode 100644 index 0000000..0655401 --- /dev/null +++ b/src/locales/fa/notifications.json @@ -0,0 +1,6 @@ +{ + "Heading": "اعلان ها", + "Tags": { + "New": "جدید" + } +} \ No newline at end of file