diff --git a/frontend/src/components/landing/landing-page.tsx b/frontend/src/components/landing/landing-page.tsx
index d7e382d..6481881 100644
--- a/frontend/src/components/landing/landing-page.tsx
+++ b/frontend/src/components/landing/landing-page.tsx
@@ -56,7 +56,7 @@ const Navbar = () => {
{t('landing.nav.formats')}
{t('landing.nav.pricing')}
-
+
setIsOpen(false)} className="block py-3 text-lg font-bold text-brand-dark dark:text-white">{t('landing.nav.why')}
setIsOpen(false)} className="block py-3 text-lg font-bold text-brand-dark dark:text-white">{t('landing.nav.formats')}
diff --git a/frontend/src/components/ui/language-switcher.tsx b/frontend/src/components/ui/language-switcher.tsx
index 80ddc81..712f28e 100644
--- a/frontend/src/components/ui/language-switcher.tsx
+++ b/frontend/src/components/ui/language-switcher.tsx
@@ -1,7 +1,6 @@
"use client";
import { Globe } from "lucide-react";
-import { Button } from "@/components/ui/button";
import {
Select,
SelectContent,
@@ -28,49 +27,27 @@ const languages: { value: Locale; label: string; flag: string }[] = [
];
interface LanguageSwitcherProps {
- variant?: "select" | "button";
+ className?: string;
}
-export function LanguageSwitcher({ variant = "select" }: LanguageSwitcherProps) {
+export function LanguageSwitcher({ className }: LanguageSwitcherProps) {
const { locale, setLocale } = useI18n();
-
- if (variant === "button") {
- const currentIndex = languages.findIndex((l) => l.value === locale);
- const nextIndex = (currentIndex + 1) % languages.length;
- const nextLang = languages[nextIndex];
- const currentLang = languages[currentIndex];
-
- return (
-
- );
- }
+ const current = languages.find((l) => l.value === locale) ?? languages[0];
return (