diff --git a/config.py b/config.py index 2c220a8..5509ecf 100644 --- a/config.py +++ b/config.py @@ -13,7 +13,6 @@ load_dotenv() class Config: # ============== Translation Service ============== TRANSLATION_SERVICE = os.getenv("TRANSLATION_SERVICE", "google") - DEEPL_API_KEY = os.getenv("DEEPL_API_KEY", "") # ============== File Upload Configuration ============== diff --git a/frontend/src/app/dashboard/DashboardHeader.tsx b/frontend/src/app/dashboard/DashboardHeader.tsx index abbcf5e..095641d 100644 --- a/frontend/src/app/dashboard/DashboardHeader.tsx +++ b/frontend/src/app/dashboard/DashboardHeader.tsx @@ -2,30 +2,24 @@ import { useState } from 'react'; import Link from 'next/link'; -import { usePathname } from 'next/navigation'; import { Menu, X, LogOut } from 'lucide-react'; -import { cn } from '@/lib/utils'; import { useUser } from './useUser'; import { useLogout } from './useLogout'; -import { baseNavItems } from './constants'; +import { DashboardNavLinks } from './DashboardNavLinks'; import { getInitials, translateTier } from './utils'; import { ThemeToggle } from '@/components/ui/theme-toggle'; import { useI18n } from '@/lib/i18n'; export function DashboardHeader() { const [mobileOpen, setMobileOpen] = useState(false); - const pathname = usePathname(); const { data: user, isLoading } = useUser(); const { logout } = useLogout(); const { t } = useI18n(); - const isPro = ['pro', 'business', 'enterprise'].includes(user?.tier ?? ''); - const navItems = isPro ? baseNavItems : baseNavItems.filter(item => !item.proOnly); - return ( <>
@@ -97,25 +91,7 @@ export function DashboardHeader() { {mobileOpen && (