From bd1238b3da7448e5997efd7efaa9a3e0b75def15 Mon Sep 17 00:00:00 2001 From: lizerk Date: Mon, 9 Mar 2026 09:56:02 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20=D0=BF=D1=80=D0=B0=D0=B2=D0=B8=D0=BB?= =?UTF-8?q?=D1=8C=D0=BD=D0=BE=D0=B5=20=D0=BE=D1=82=D0=BE=D0=B1=D1=80=D0=B0?= =?UTF-8?q?=D0=B6=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=B8=D0=BA=D0=BE=D0=BD=D0=BE?= =?UTF-8?q?=D0=BA=20=D0=BA=D0=B0=D1=82=D0=B5=D0=B3=D0=BE=D1=80=D0=B8=D0=B9?= =?UTF-8?q?=20=D1=83=D0=B2=D0=B5=D0=B4=D0=BE=D0=BC=D0=BB=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Добавлен маппинг категорий на эмодзи-иконки - Исправлено отображение текста вместо иконок (bi-chat-dots -> 💬) - Увеличен размер иконок (text-xl) - Добавлены эмодзи для всех основных категорий --- frontend/src/app/notifications/page.tsx | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/frontend/src/app/notifications/page.tsx b/frontend/src/app/notifications/page.tsx index f67eeef2..5ff06e46 100644 --- a/frontend/src/app/notifications/page.tsx +++ b/frontend/src/app/notifications/page.tsx @@ -59,9 +59,21 @@ export default function NotificationsPage() { } }; - const getCategoryIcon = (icon?: string) => { - // Можно добавить маппинг иконок по необходимости - return icon || '📋'; + const getCategoryIconEmoji = (categoryCode?: string, icon?: string) => { + // Маппинг категорий на эмодзи + const iconMap: Record = { + 'communications': '💬', + 'messages': '💬', + 'requests': '📝', + 'documents': '📄', + 'calendar': '📅', + 'system': '⚙️', + 'finance': '💰', + 'procurement': '🛒', + 'equipment': '🖥️', + }; + + return iconMap[categoryCode || ''] || '📋'; }; return ( @@ -192,7 +204,7 @@ export default function NotificationsPage() {
{/* Иконка */}
- {getCategoryIcon(notification.icon)} + {getCategoryIconEmoji(notification.category, notification.icon)}
{/* Содержимое */}