Bottom nav: rename Me→Profile, link to settings root instead of edit profile

- "Me" label renamed to "Profile" — clearer intent
- Link changed from /settings?section=profile to /settings — lands on the
  settings root menu so users see all options, not just the edit form

Co-authored-by: shakespeare.diy <assistant@shakespeare.diy>
This commit is contained in:
shakespeare.diy 2026-07-23 22:03:52 +07:00
parent f48844b495
commit ceff6962ec

View file

@ -298,9 +298,9 @@ function MobileNav({
);
})}
{/* Profile / Login tab — goes straight to profile section when logged in */}
{/* Profile / Login tab — always lands on Settings root */}
<Link
to={isLoggedIn ? "/settings?section=profile" : "/settings"}
to="/settings"
className={cn(
'relative flex flex-col items-center justify-center gap-0.5 py-1.5 px-1 rounded-xl transition-all duration-150 flex-1 touch-manipulation active:scale-90',
isActive('/settings') ? 'text-[#ff0040]' : 'text-gray-500'
@ -326,7 +326,7 @@ function MobileNav({
<User className="h-[22px] w-[22px]" />
)}
<span className="text-[9px] xs:text-[10px] font-semibold leading-tight tracking-wide uppercase">
{isLoggedIn ? 'Me' : 'Log In'}
{isLoggedIn ? 'Profile' : 'Log In'}
</span>
</Link>
</div>