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:
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user