Refactor commissions to Admin Panel
This commit is contained in:
@@ -118,6 +118,16 @@ const DashboardLayout = ({ children }: { children: React.ReactNode }) => {
|
|||||||
},
|
},
|
||||||
{ icon: AlertTriangle, label: 'Emergencias', path: '/dashboard/admin?tab=emergency' },
|
{ icon: AlertTriangle, label: 'Emergencias', path: '/dashboard/admin?tab=emergency' },
|
||||||
{ icon: MessageSquare, label: 'Soporte', path: '/dashboard/admin?tab=support' },
|
{ icon: MessageSquare, label: 'Soporte', path: '/dashboard/admin?tab=support' },
|
||||||
|
{
|
||||||
|
icon: DollarSign,
|
||||||
|
label: 'Comisiones',
|
||||||
|
path: '/dashboard/commissions',
|
||||||
|
subItems: [
|
||||||
|
{ icon: BarChart3, label: 'Dashboard', path: '/dashboard/commissions/dashboard' },
|
||||||
|
{ icon: Settings, label: 'Reglas', path: '/dashboard/commissions/rules' },
|
||||||
|
{ icon: FileText, label: 'Historial', path: '/dashboard/commissions/payments' }
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
icon: Settings,
|
icon: Settings,
|
||||||
label: 'Configuración',
|
label: 'Configuración',
|
||||||
@@ -197,19 +207,9 @@ const DashboardLayout = ({ children }: { children: React.ReactNode }) => {
|
|||||||
{ icon: BookOpen, label: 'Biblioteca', path: '/dashboard/guides/library' }
|
{ icon: BookOpen, label: 'Biblioteca', path: '/dashboard/guides/library' }
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
|
||||||
icon: DollarSign,
|
|
||||||
label: 'Comisiones',
|
|
||||||
path: '/dashboard/commissions',
|
|
||||||
subItems: [
|
|
||||||
{ icon: BarChart3, label: 'Dashboard', path: '/dashboard/commissions/dashboard' },
|
|
||||||
{ icon: Settings, label: 'Reglas', path: '/dashboard/commissions/rules' },
|
|
||||||
{ icon: FileText, label: 'Historial', path: '/dashboard/commissions/payments' }
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
icon: Store,
|
icon: Store,
|
||||||
label: t('commerce'),
|
label: t('commerce'),
|
||||||
path: '/dashboard/commerce',
|
path: '/dashboard/commerce',
|
||||||
subItems: [
|
subItems: [
|
||||||
{ icon: Store, label: t('myStore'), path: '/dashboard/commerce/store' },
|
{ icon: Store, label: t('myStore'), path: '/dashboard/commerce/store' },
|
||||||
|
|||||||
Reference in New Issue
Block a user