Dodaj react-router-dom, mape tras i ProtectedRoute

Fundament migracji z useState(view) na prawdziwy routing:
- react-router-dom 7 w zaleznosciach
- BrowserRouter w main.tsx (nginx ma juz try_files, wiec czyste sciezki dzialaja)
- routes.ts: centralna mapa adresow + helpery listingPath/mapPath/adminTabPath
- ProtectedRoute z obsluga stanu loading z AuthProvider

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-07-23 23:24:22 +02:00
parent a6b156695f
commit f072ed0115
6 changed files with 223 additions and 7 deletions
+3
View File
@@ -26749,3 +26749,6 @@ svg {
.mkt-error { color: #b3261e; font-size: 13px; font-weight: 600; margin: 0; }
.mkt-ok { color: #12784a; font-size: 13px; font-weight: 600; margin: 0; }
/* Routing: stan wczytywania profilu przy wejsciu na trase chroniona */
.route-loading { padding: 80px 24px; text-align: center; color: #5b6472; font-size: 15px; font-weight: 600; }