mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 21:01:08 +02:00
refactor(pill-nav): drop Settings entry, guard on settingsHref
Settings lives in the Workbench now — no longer needs its own pill. settingsHref becomes optional; both places that render the entry (user-menu link list + nav overflow dropdown) skip it when unset. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
f7426ab40f
commit
f2faaf1387
2 changed files with 10 additions and 9 deletions
|
|
@ -974,7 +974,6 @@
|
|||
currentSyncLabel={syncStatus.label}
|
||||
{appItems}
|
||||
{userEmail}
|
||||
settingsHref="/"
|
||||
manaHref="/mana"
|
||||
profileHref="/profile"
|
||||
spiralHref="/spiral"
|
||||
|
|
|
|||
|
|
@ -379,7 +379,7 @@
|
|||
appItems = [],
|
||||
showAppSwitcher = false,
|
||||
userEmail,
|
||||
settingsHref = '/settings',
|
||||
settingsHref,
|
||||
manaHref,
|
||||
profileHref,
|
||||
loginHref,
|
||||
|
|
@ -476,13 +476,15 @@
|
|||
active: currentPath === profileHref,
|
||||
});
|
||||
}
|
||||
links.push({
|
||||
id: 'settings',
|
||||
label: 'Einstellungen',
|
||||
icon: 'settings',
|
||||
href: settingsHref,
|
||||
active: currentPath === settingsHref,
|
||||
});
|
||||
if (settingsHref) {
|
||||
links.push({
|
||||
id: 'settings',
|
||||
label: 'Einstellungen',
|
||||
icon: 'settings',
|
||||
href: settingsHref,
|
||||
active: currentPath === settingsHref,
|
||||
});
|
||||
}
|
||||
if (userEmail && manaHref) {
|
||||
links.push({
|
||||
id: 'mana',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue