Fix jwt-token

This commit is contained in:
2025-09-19 14:13:24 +02:00
parent e820f68b05
commit 32245f1132
7 changed files with 312 additions and 34 deletions

View File

@@ -33,7 +33,7 @@ const Layout = () => {
// Build navigation based on user permissions with translations
const baseNavigation = [
{ name: t('navigation.dashboard'), href: '/', icon: HomeIcon },
{ name: 'Map View', href: '/map', icon: MapIcon }, // TODO: Add to translations
{ name: t('navigation.map'), href: '/map', icon: MapIcon },
{ name: t('navigation.devices'), href: '/devices', icon: ServerIcon },
{ name: t('navigation.detections'), href: '/detections', icon: ExclamationTriangleIcon },
{ name: t('navigation.alerts'), href: '/alerts', icon: BellIcon },
@@ -106,7 +106,7 @@ const Layout = () => {
<div className="flex-1 px-4 flex justify-between items-center">
<div className="flex-1 flex">
<h1 className="text-xl font-semibold text-gray-900">
{navigation?.find(item => item.href === location.pathname)?.name || 'Drone Detection System'}
{navigation?.find(item => item.href === location.pathname)?.name || t('app.title')}
</h1>
</div>