Skip to content

Commit

Permalink
fix routing in tabs - #2264
Browse files Browse the repository at this point in the history
  • Loading branch information
proddy committed Nov 30, 2024
1 parent a4e3be6 commit e418b7d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions interface/src/app/settings/network/Network.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ const Network = () => {
}}
>
<RouterTabs value={routerTab}>
<Tab value="settings" label={LL.SETTINGS_OF(LL.NETWORK(1))} />
<Tab value="scan" label={LL.NETWORK_SCAN()} />
<Tab value="/settings/network/settings" label={LL.SETTINGS_OF(LL.NETWORK(1))} />
<Tab value="/settings/network/scan" label={LL.NETWORK_SCAN()} />
</RouterTabs>
<Routes>
<Route path="scan" element={<WiFiNetworkScanner />} />
Expand Down
4 changes: 2 additions & 2 deletions interface/src/app/settings/security/Security.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ const Security = () => {
return (
<>
<RouterTabs value={routerTab}>
<Tab value="settings" label={LL.SETTINGS_OF(LL.SECURITY(1))} />
<Tab value="users" label={LL.MANAGE_USERS()} />
<Tab value="/settings/security/settings" label={LL.SETTINGS_OF(LL.SECURITY(1))} />
<Tab value="/settings/security/users" label={LL.MANAGE_USERS()} />
</RouterTabs>
<Routes>
<Route path="users" element={<ManageUsers />} />
Expand Down

0 comments on commit e418b7d

Please sign in to comment.