From 90237a2408bb7ec79d1a58009954b728e94cfadb Mon Sep 17 00:00:00 2001 From: Marcos Date: Fri, 10 Jul 2026 14:33:07 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20pin=20Prefer=C3=AAncias=20to=20the=20rig?= =?UTF-8?q?ht=20of=20the=20mobile=20footer=20menu?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/App.tsx | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/app/src/App.tsx b/app/src/App.tsx index 13622f5..a47aee2 100644 --- a/app/src/App.tsx +++ b/app/src/App.tsx @@ -127,7 +127,7 @@ function AppLayout({ children }: { children: React.ReactNode }) { {/* Demais itens (Rolagem horizontal) */}
- {navItems.slice(1).map((item) => { + {navItems.slice(1, -1).map((item) => { const isActive = location.pathname === item.path; const label = t(item.labelKey); return ( @@ -147,6 +147,28 @@ function AppLayout({ children }: { children: React.ReactNode }) { ); })}
+ + {/* PreferĂȘncias (Fixo na direita) */} + {(() => { + const settingsItem = navItems[navItems.length - 1]; + const isActive = location.pathname === settingsItem.path; + const label = t(settingsItem.labelKey); + return ( + +
+ {settingsItem.icon} +
+ {label} + + ); + })()} );