This commit is contained in:
Iliyan Angelov
2025-11-30 23:29:01 +02:00
parent 39fcfff811
commit 0fa2adeb19
1058 changed files with 4630 additions and 296 deletions

View File

@@ -27,7 +27,10 @@ import {
TrendingUp,
Building2,
Crown,
Star
Star,
AlertCircle,
FileCheck,
ClipboardCheck
} from 'lucide-react';
import useAuthStore from '../../store/useAuthStore';
import { useResponsive } from '../../hooks';
@@ -62,7 +65,7 @@ const SidebarAdmin: React.FC<SidebarAdminProps> = ({
const handleLogout = async () => {
try {
await logout();
navigate('/');
// Logout function will redirect to homepage
if (isMobile) {
setIsMobileOpen(false);
}
@@ -149,6 +152,11 @@ const SidebarAdmin: React.FC<SidebarAdminProps> = ({
icon: BarChart3,
label: 'Analytics'
},
{
path: '/admin/financial-audit',
icon: FileCheck,
label: 'Financial Audit'
},
]
},
{
@@ -175,6 +183,11 @@ const SidebarAdmin: React.FC<SidebarAdminProps> = ({
icon: Award,
label: 'Loyalty Program'
},
{
path: '/admin/complaints',
icon: AlertCircle,
label: 'Complaints'
},
]
},
{
@@ -254,6 +267,11 @@ const SidebarAdmin: React.FC<SidebarAdminProps> = ({
icon: Settings,
label: 'Settings'
},
{
path: '/admin/compliance',
icon: ClipboardCheck,
label: 'Compliance'
},
]
},
];