From 3fb06c523d61719a2e183b22dac313457194baf7 Mon Sep 17 00:00:00 2001 From: Dariusz Niemczyk Date: Wed, 29 Jan 2025 21:02:12 +0100 Subject: [PATCH] feat: beautify nav --- src/components/mobile-nav.tsx | 11 ++++++++--- src/components/nav.tsx | 10 ++++++---- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/src/components/mobile-nav.tsx b/src/components/mobile-nav.tsx index 1553e6f..b5cdaf1 100644 --- a/src/components/mobile-nav.tsx +++ b/src/components/mobile-nav.tsx @@ -2,15 +2,18 @@ import { Button } from "@/components/ui/button" import { Sheet, SheetContent, SheetHeader, SheetTitle, SheetTrigger } from "@/components/ui/sheet" -import type { translations } from "@/i18n/translations" +import type { Sections, translations } from "@/i18n/translations" +import { cn } from "@/lib/utils" import { Menu } from "lucide-react" export function MobileNav({ t, linksOrder, + activeSection }: { t: typeof translations.pl - linksOrder: Array + linksOrder: Array + activeSection: Sections }) { return ( @@ -26,7 +29,9 @@ export function MobileNav({