rename /setup route to /settings, fix hooks violation crash on settings page
All checks were successful
Build and Push Docker Image / build (push) Successful in 16s

useState was called after conditional return (React hooks rules violation),
causing the settings page to crash. moved all hooks to top level.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-04 17:31:34 +01:00
parent 3682ee98e0
commit aaaa5ff402
3 changed files with 13 additions and 7 deletions

View File

@@ -54,7 +54,7 @@ function RootLayout() {
<NavLink to="/execute">Execute</NavLink>
<div className="flex-1" />
<NavLink to="/nodes">Nodes</NavLink>
<NavLink to="/setup">Settings</NavLink>
<NavLink to="/settings">Settings</NavLink>
</nav>
<main className="max-w-[1600px] mx-auto px-5 pt-4 pb-12">
<Outlet />