From c23c8606987df1bac449f3c67f68edca9548747a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cjazzz2502=E2=80=9D?= <“jasmine250206@gmail.com”> Date: Thu, 11 Jun 2026 22:13:49 +0530 Subject: [PATCH 1/2] feat: move language and theme controls to mobile bottom nav --- src/components/BottomNav.tsx | 31 +++++++++++++++++++++++++++++-- src/components/Navbar.tsx | 2 +- 2 files changed, 30 insertions(+), 3 deletions(-) diff --git a/src/components/BottomNav.tsx b/src/components/BottomNav.tsx index db85f8f..9d0d957 100644 --- a/src/components/BottomNav.tsx +++ b/src/components/BottomNav.tsx @@ -1,14 +1,16 @@ import { Link, useLocation } from 'react-router-dom'; -import { ScanLine, Map, Layers } from 'lucide-react'; +import { ScanLine, Map, Languages, SunMoon } from 'lucide-react'; +import { useTranslation } from "react-i18next"; +import { toggleTheme } from '../lib/theme'; const navItems = [ { to: '/scanner', icon: ScanLine, label: 'SCANNER' }, { to: '/map', icon: Map, label: 'MAP' }, - { to: '/mode', icon: Layers, label: 'MODE' }, ]; export default function BottomNav() { const location = useLocation(); + const { i18n } = useTranslation(); return ( ); diff --git a/src/components/Navbar.tsx b/src/components/Navbar.tsx index e0d90f0..d4cb521 100644 --- a/src/components/Navbar.tsx +++ b/src/components/Navbar.tsx @@ -93,7 +93,7 @@ export default function Navbar() { {/* Auth Button & Theme Toggle */} -