Fix: Multilingual and currency selectors not updating
This commit is contained in:
@@ -76,7 +76,7 @@ const DashboardLayout = ({ children }: { children: React.ReactNode }) => {
|
||||
};
|
||||
|
||||
const menuItems = [
|
||||
{ icon: Home, label: 'Dashboard', path: '/dashboard' },
|
||||
{ icon: Home, label: t('dashboard'), path: '/dashboard' },
|
||||
{
|
||||
icon: Settings,
|
||||
label: 'Admin Panel',
|
||||
@@ -139,7 +139,7 @@ const DashboardLayout = ({ children }: { children: React.ReactNode }) => {
|
||||
{ icon: DoorOpen, label: 'Check-in', path: '/dashboard/hotel/checkin' },
|
||||
{ icon: BellRing, label: 'Room Service', path: '/dashboard/hotel/room-service' },
|
||||
{ icon: Key, label: 'Acceso', path: '/dashboard/hotel/keyless' },
|
||||
{ icon: Users, label: 'Personal', path: '/dashboard/hotel/staff' }
|
||||
{ icon: Users, label: t('staff'), path: '/dashboard/hotel/staff' }
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -153,8 +153,8 @@ const DashboardLayout = ({ children }: { children: React.ReactNode }) => {
|
||||
{ icon: Receipt, label: 'Cuentas', path: '/dashboard/restaurant/bills' },
|
||||
{ icon: Grid3x3, label: 'Mesas', path: '/dashboard/restaurant/tables' },
|
||||
{ icon: UtensilsCrossed, label: 'Menú', path: '/dashboard/restaurant/menu' },
|
||||
{ icon: Package, label: 'Inventario', path: '/dashboard/restaurant/inventory' },
|
||||
{ icon: Users, label: 'Personal', path: '/dashboard/restaurant/staff' }
|
||||
{ icon: Package, label: t('inventory'), path: '/dashboard/restaurant/inventory' },
|
||||
{ icon: Users, label: t('staff'), path: '/dashboard/restaurant/staff' }
|
||||
]
|
||||
},
|
||||
{ icon: Brain, label: 'Personalization', path: '/dashboard/personalization' },
|
||||
@@ -163,25 +163,25 @@ const DashboardLayout = ({ children }: { children: React.ReactNode }) => {
|
||||
{ icon: Leaf, label: 'Sustainability', path: '/dashboard/sustainability' },
|
||||
{
|
||||
icon: Store,
|
||||
label: 'Comercios',
|
||||
label: t('commerce'),
|
||||
path: '/dashboard/commerce',
|
||||
subItems: [
|
||||
{ icon: Store, label: 'Mi Comercio', path: '/dashboard/commerce/store' },
|
||||
{ icon: CreditCard, label: 'POS Ventas', path: '/dashboard/commerce/pos' },
|
||||
{ icon: Package, label: 'Inventario', path: '/dashboard/commerce/inventory' },
|
||||
{ icon: Users, label: 'Clientes', path: '/dashboard/commerce/customers' },
|
||||
{ icon: Users, label: 'Personal', path: '/dashboard/commerce/staff' },
|
||||
{ icon: Receipt, label: 'Caja', path: '/dashboard/commerce/cashier' },
|
||||
{ icon: BarChart3, label: 'Reportes', path: '/dashboard/commerce/reports' },
|
||||
{ icon: DollarSign, label: 'Ventas', path: '/dashboard/commerce/sales' }
|
||||
{ icon: Store, label: t('myStore'), path: '/dashboard/commerce/store' },
|
||||
{ icon: CreditCard, label: t('posTerminal'), path: '/dashboard/commerce/pos' },
|
||||
{ icon: Package, label: t('inventory'), path: '/dashboard/commerce/inventory' },
|
||||
{ icon: Users, label: t('customers'), path: '/dashboard/commerce/customers' },
|
||||
{ icon: Users, label: t('staff'), path: '/dashboard/commerce/staff' },
|
||||
{ icon: Receipt, label: t('cashier'), path: '/dashboard/commerce/cashier' },
|
||||
{ icon: BarChart3, label: t('reports'), path: '/dashboard/commerce/reports' },
|
||||
{ icon: DollarSign, label: t('sales'), path: '/dashboard/commerce/sales' }
|
||||
]
|
||||
},
|
||||
{ icon: Wallet, label: 'Wallet', path: '/dashboard/wallet' },
|
||||
{ icon: Wallet, label: t('wallet'), path: '/dashboard/wallet' },
|
||||
{ icon: MessageSquare, label: 'Message', path: '/dashboard/messages', badge: '2' },
|
||||
];
|
||||
|
||||
const listingItems = [
|
||||
{ icon: List, label: 'My Listing', path: '/dashboard/my-listings', hasSubmenu: true },
|
||||
{ icon: List, label: t('myListings'), path: '/dashboard/my-listings', hasSubmenu: true },
|
||||
{ icon: Star, label: 'Reviews', path: '/dashboard/reviews' },
|
||||
{ icon: BookOpen, label: 'Bookings', path: '/dashboard/bookings' },
|
||||
{ icon: Heart, label: 'Bookmark', path: '/dashboard/bookmarks' },
|
||||
@@ -189,9 +189,9 @@ const DashboardLayout = ({ children }: { children: React.ReactNode }) => {
|
||||
];
|
||||
|
||||
const accountItems = [
|
||||
{ icon: User, label: 'Edit Profile', path: '/dashboard/profile' },
|
||||
{ icon: CreditCard, label: 'Wallet', path: '/dashboard/wallet' },
|
||||
{ icon: Settings, label: 'Setting', path: '/dashboard/settings' },
|
||||
{ icon: User, label: t('profile'), path: '/dashboard/profile' },
|
||||
{ icon: CreditCard, label: t('wallet'), path: '/dashboard/wallet' },
|
||||
{ icon: Settings, label: t('settings'), path: '/dashboard/settings' },
|
||||
];
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user