feat(account-page): implement dynamic account navigation menus in sidebar and user dropdown
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
import { Menu } from './tenant.interface';
|
||||
|
||||
const MENU_LABELS: Record<string, string> = {
|
||||
account: 'Mi cuenta',
|
||||
profile: 'Datos personales',
|
||||
purchases: 'Mis compras',
|
||||
tickets: 'Mis tickets',
|
||||
'help.faq': 'Preguntas frecuentes',
|
||||
'help.contact': 'Contacto',
|
||||
'help.payment-methods': 'Medios de pago',
|
||||
@@ -35,3 +39,7 @@ export function getMenuLabel(menu: Menu): string {
|
||||
|
||||
return label.charAt(0).toUpperCase() + label.slice(1);
|
||||
}
|
||||
|
||||
export function getAccountNavigationLabel(menu: Menu): string {
|
||||
return menu.code === 'profile' ? 'Mi cuenta' : getMenuLabel(menu);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user