feat: Refactor settings navigation and enhance profile reference values display
- Introduced a new SettingsShell layout for improved navigation within the settings section. - Updated ProfileReferenceValuesPage to display the latest entry with enhanced styling and information. - Removed the direct link to settings from ProfileReferenceValuesPage for a cleaner UI. - Adjusted SettingsPage to streamline the layout and focus on essential settings options.
This commit is contained in:
1 parent
296e79c3b3
commit
c152721fe8
6 files changed
+95
-29
No files matched your search
@@ -0,0 +1,33 @@
|
||||
import { Outlet, NavLink } from 'react-router-dom'
|
||||
import { SETTINGS_SHELL_NAV_ITEMS } from '../config/settingsNav'
|
||||
|
||||
/**
|
||||
* Wie Admin / KI-Analyse: Chips horizontal (mobil) bzw. Seitenleiste (Desktop).
|
||||
*/
|
||||
export default function SettingsShell() {
|
||||
return (
|
||||
<div className="settings-shell">
|
||||
<div className="analysis-split">
|
||||
<div className="analysis-split__nav-wrap">
|
||||
<nav className="analysis-split__nav" aria-label="Einstellungen">
|
||||
{SETTINGS_SHELL_NAV_ITEMS.map((item) => (
|
||||
<NavLink
|
||||
key={item.id}
|
||||
to={item.to}
|
||||
end={!!item.end}
|
||||
className={({ isActive }) =>
|
||||
'analysis-split__nav-item' + (isActive ? ' analysis-split__nav-item--active' : '')
|
||||
}
|
||||
>
|
||||
{item.label}
|
||||
</NavLink>
|
||||
))}
|
||||
</nav>
|
||||
</div>
|
||||
<div className="analysis-split__main">
|
||||
<Outlet />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
Reference in new issue
Block a user