refactor: move ConnectionQR into standard Layout with proper navigation

- Wrap /connection/qr route in ProtectedRoute with Layout
- Remove fullscreen overlay and custom close button
- Add AdminBackButton with replace prop to avoid history cycles
- Use replace navigation from Connection to QR page
- Add replace prop support to AdminBackButton component
This commit is contained in:
c0mrade
2026-03-07 23:25:33 +03:00
parent eed077b019
commit 8ce4b1a24a
4 changed files with 42 additions and 77 deletions

View File

@@ -406,9 +406,11 @@ function App() {
<Route
path="/connection/qr"
element={
<LazyPage>
<ConnectionQR />
</LazyPage>
<ProtectedRoute>
<LazyPage>
<ConnectionQR />
</LazyPage>
</ProtectedRoute>
}
/>
<Route