fix(settings): land Medlemmar clicks on the members section (#1566)

The user-menu link pointed at /settings/team, but in-app navigation is
intercepted by the settings modal, whose section map has no team entry:
unknown sections fall back to Företag, leaving the user to scroll and
find Medlemmar themselves. Link to /settings/company#members instead,
and scroll the members section into view when it mounts (ref callback,
since the content mounts after the settings fetch). The hash is cleared
after scrolling so tab-switching back to Företag stays put.

Co-authored-by: Jakob Wennberg <311770904+jakobwennberg-oss@users.noreply.github.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Jakob Wennberg
2026-08-13 14:36:58 +02:00
committed by GitHub
co-authored by Jakob Wennberg Claude Fable 5
parent 5769e35869
commit f8507d38ae
2 changed files with 16 additions and 2 deletions
+1 -1
View File
@@ -334,7 +334,7 @@ export default function UserMenu({
<Settings className="h-4 w-4 flex-shrink-0" />
{tNav('settings')}
</Link>
<Link href="/settings/team" onClick={close} className={menuRow}>
<Link href="/settings/company#members" onClick={close} className={menuRow}>
<Users className="h-4 w-4 flex-shrink-0" />
{tNav('members_roles')}
</Link>