feat: implement main navigation component and integrate protected routing in App structure

This commit is contained in:
Michael committed 2026-04-16 12:57:37 +02:00
1 parent b06298d80e
commit 2b971f97b3
3 files changed
+220 -1

No files matched your search

+9
View File
@@ -6,6 +6,7 @@ import Login from './pages/Login';
import Dashboard from './pages/Dashboard';
import Trending from './pages/Trending';
import AddPodcast from './pages/AddPodcast';
import Library from './pages/Library';
import Navigation from './components/Navigation';
const queryClient = new QueryClient({
@@ -63,6 +64,14 @@ export default function App() {
</ProtectedRoute>
}
/>
<Route
path="/library"
element={
<ProtectedRoute>
<Library />
</ProtectedRoute>
}
/>
<Route path="/" element={<Navigate to="/dashboard" replace />} />
<Route path="*" element={<Navigate to="/dashboard" replace />} />
</Routes>