Refactor admin panel menu structure

This commit is contained in:
gpt-engineer-app[bot]
2025-10-11 15:41:15 +00:00
parent 447eadd88c
commit 60b7e9a73d
9 changed files with 567 additions and 4 deletions

View File

@@ -56,7 +56,8 @@ import {
Radio,
Sparkles,
Leaf,
Store
Store,
Server
} from 'lucide-react';
const DashboardLayout = ({ children }: { children: React.ReactNode }) => {
@@ -115,7 +116,20 @@ const DashboardLayout = ({ children }: { children: React.ReactNode }) => {
},
{ icon: AlertTriangle, label: 'Emergencias', path: '/dashboard/admin?tab=emergency' },
{ icon: MessageSquare, label: 'Soporte', path: '/dashboard/admin?tab=support' },
{ icon: Settings, label: 'Configuración', path: '/dashboard/admin?tab=config' },
{
icon: Settings,
label: 'Configuración',
path: '/dashboard/config',
subItems: [
{ icon: Server, label: 'APIs', path: '/dashboard/config/apis' },
{ icon: CreditCard, label: 'Pagos', path: '/dashboard/config/payments' },
{ icon: Settings, label: 'Parámetros', path: '/dashboard/config/parameters' },
{ icon: Radio, label: 'Integraciones', path: '/dashboard/config/integrations' },
{ icon: FileText, label: 'Auditoría', path: '/dashboard/config/audit' },
{ icon: Shield, label: 'Security Center', path: '/dashboard/config/security' },
{ icon: Brain, label: 'Personalización', path: '/dashboard/config/personalization' }
]
},
{ icon: BarChart3, label: 'Analytics', path: '/dashboard/analytics' },
{ icon: Search, label: 'Buscar Lugares', path: '/dashboard/search-places' },
{ icon: Store, label: 'Buscar Comercios', path: '/dashboard/search-establishments' }