diff --git a/src/pages/AdminPanel.tsx b/src/pages/AdminPanel.tsx index 2743827..3708998 100644 --- a/src/pages/AdminPanel.tsx +++ b/src/pages/AdminPanel.tsx @@ -1,6 +1,38 @@ import { Link } from 'react-router-dom' import { useTranslation } from 'react-i18next' +// Group header icons +const AnalyticsGroupIcon = () => ( + + + +) + +const UsersGroupIcon = () => ( + + + +) + +const TariffsGroupIcon = () => ( + + + +) + +const MarketingGroupIcon = () => ( + + + +) + +const SystemGroupIcon = () => ( + + + + +) + // Modern icons with consistent styling const ChartBarIcon = () => ( @@ -109,7 +141,7 @@ interface AdminItem { interface AdminGroup { id: string title: string - icon: string + icon: React.ReactNode gradient: string borderColor: string iconBg: string @@ -143,7 +175,9 @@ function GroupSection({ group }: { group: AdminGroup }) { {/* Group Header */}
- {group.icon} +
+ {group.icon} +

{group.title}

@@ -170,7 +204,7 @@ export default function AdminPanel() { { id: 'analytics', title: t('admin.groups.analytics', 'Аналитика'), - icon: '📊', + icon: , gradient: 'from-emerald-500/10 to-emerald-500/5', borderColor: 'border-emerald-500/20', iconBg: 'bg-emerald-500/20', @@ -193,7 +227,7 @@ export default function AdminPanel() { { id: 'users', title: t('admin.groups.users', 'Пользователи'), - icon: '👥', + icon: , gradient: 'from-blue-500/10 to-blue-500/5', borderColor: 'border-blue-500/20', iconBg: 'bg-blue-500/20', @@ -222,7 +256,7 @@ export default function AdminPanel() { { id: 'tariffs', title: t('admin.groups.tariffs', 'Тарифы и продажи'), - icon: '💰', + icon: , gradient: 'from-amber-500/10 to-amber-500/5', borderColor: 'border-amber-500/20', iconBg: 'bg-amber-500/20', @@ -251,7 +285,7 @@ export default function AdminPanel() { { id: 'marketing', title: t('admin.groups.marketing', 'Маркетинг'), - icon: '📣', + icon: , gradient: 'from-rose-500/10 to-rose-500/5', borderColor: 'border-rose-500/20', iconBg: 'bg-rose-500/20', @@ -280,7 +314,7 @@ export default function AdminPanel() { { id: 'system', title: t('admin.groups.system', 'Система'), - icon: '⚙️', + icon: , gradient: 'from-violet-500/10 to-violet-500/5', borderColor: 'border-violet-500/20', iconBg: 'bg-violet-500/20',