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

@@ -37,6 +37,7 @@ export default function Connection() {
const handleOpenQR = useCallback(() => {
navigate('/connection/qr', {
replace: true,
state: {
url: appConfig?.subscriptionUrl,
hideLink: appConfig?.hideLink ?? false,