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)}
{/* Содержимое */}