From ce254aa1d9c5e5a3243876c729e1a234236cab03 Mon Sep 17 00:00:00 2001 From: Pablo Date: Thu, 4 Sep 2025 13:44:46 +0200 Subject: [PATCH] use tabs primitives for mobile menu --- src/components/Nav/MobileMenu/index.tsx | 27 ++++++++++++------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/src/components/Nav/MobileMenu/index.tsx b/src/components/Nav/MobileMenu/index.tsx index 89e52a2d279..9163ef93f3f 100644 --- a/src/components/Nav/MobileMenu/index.tsx +++ b/src/components/Nav/MobileMenu/index.tsx @@ -1,6 +1,6 @@ import { Languages, Menu } from "lucide-react" import { getLocale, getTranslations } from "next-intl/server" -import { Trigger as TabsTrigger } from "@radix-ui/react-tabs" +import * as TabsPrimitive from "@radix-ui/react-tabs" import type { Lang } from "@/lib/types" @@ -19,7 +19,6 @@ import { SheetTrigger, } from "@/components/ui/sheet" import { SheetCloseOnNavigate } from "@/components/ui/sheet-close-on-navigate" -import { Tabs, TabsContent, TabsList } from "@/components/ui/tabs" import { cn } from "@/lib/utils/cn" import { isLangRightToLeft } from "@/lib/utils/translations" @@ -68,28 +67,28 @@ export default async function MobileMenu({ - - - - + - + - +
- + {t("languages")} - +
- + {t("menu")} - +
-
+
-
+ )