From 8ce4b1a24a42ffe77fa9ce10df385d4f216ddb59 Mon Sep 17 00:00:00 2001 From: c0mrade Date: Sat, 7 Mar 2026 23:25:33 +0300 Subject: [PATCH] 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 --- src/App.tsx | 8 +- src/components/admin/AdminBackButton.tsx | 4 +- src/pages/Connection.tsx | 1 + src/pages/ConnectionQR.tsx | 106 +++++++---------------- 4 files changed, 42 insertions(+), 77 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 46e0ea8..5b484ca 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -406,9 +406,11 @@ function App() { - - + + + + + } />