updates
This commit is contained in:
@@ -177,6 +177,11 @@ const SidebarAdmin: React.FC<SidebarAdminProps> = ({
|
||||
icon: FileText,
|
||||
label: 'Invoices'
|
||||
},
|
||||
{
|
||||
path: '/admin/promotions',
|
||||
icon: Tag,
|
||||
label: 'Promotions'
|
||||
},
|
||||
{
|
||||
path: '/admin/financial-audit',
|
||||
icon: FileCheck,
|
||||
@@ -193,11 +198,6 @@ const SidebarAdmin: React.FC<SidebarAdminProps> = ({
|
||||
icon: BarChart3,
|
||||
label: 'Reports & Analytics'
|
||||
},
|
||||
{
|
||||
path: '/admin/business',
|
||||
icon: TrendingUp,
|
||||
label: 'Business Insights'
|
||||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -367,7 +367,7 @@ const SidebarAdmin: React.FC<SidebarAdminProps> = ({
|
||||
const isActive = (path: string) => {
|
||||
if (location.pathname === path) return true;
|
||||
|
||||
if (path === '/admin/settings' || path === '/admin/analytics' || path === '/admin/business' || path === '/admin/reception' || path === '/admin/advanced-rooms' || path === '/admin/page-content' || path === '/admin/loyalty') {
|
||||
if (path === '/admin/settings' || path === '/admin/analytics' || path === '/admin/reception' || path === '/admin/advanced-rooms' || path === '/admin/page-content' || path === '/admin/loyalty') {
|
||||
return location.pathname === path;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user