Fix jwt-token

This commit is contained in:
2025-09-19 13:33:51 +02:00
parent 6863e3bc65
commit b2bc3f4567
4 changed files with 328 additions and 46 deletions

View File

@@ -1,8 +1,9 @@
import React from 'react'
import { Outlet, NavLink, useLocation } from 'react-router-dom'
import { useTranslation } from 'react-i18next'
// import { useTranslation } from 'react-i18next' // Commented out until Docker rebuild
import { useAuth } from '../contexts/AuthContext'
import LanguageSelector from './common/LanguageSelector'
import { t } from '../utils/tempTranslations' // Temporary translation system
import {
HomeIcon,
BuildingOfficeIcon,
@@ -12,15 +13,15 @@ import {
} from '@heroicons/react/24/outline'
const Layout = () => {
const { t } = useTranslation()
// const { t } = useTranslation() // Commented out until Docker rebuild
const { user, logout } = useAuth()
const location = useLocation()
const navigation = [
{ name: t('navigation.dashboard'), href: '/dashboard', icon: HomeIcon },
{ name: t('navigation.tenants'), href: '/tenants', icon: BuildingOfficeIcon },
{ name: t('navigation.users'), href: '/users', icon: UsersIcon },
{ name: t('navigation.system'), href: '/system', icon: CogIcon },
{ name: t('nav.dashboard'), href: '/dashboard', icon: HomeIcon },
{ name: t('nav.tenants'), href: '/tenants', icon: BuildingOfficeIcon },
{ name: t('nav.users'), href: '/users', icon: UsersIcon },
{ name: t('nav.system'), href: '/system', icon: CogIcon },
]
return (
@@ -76,7 +77,7 @@ const Layout = () => {
<button
onClick={logout}
className="p-1 rounded-md text-gray-400 hover:text-gray-600 hover:bg-gray-100"
title="Logout"
title={t('auth.logout')}
>
<ArrowRightOnRectangleIcon className="h-5 w-5" />
</button>