mirror of
https://github.com/R0m1k3/podcastic.git
synced 2026-10-24 15:38:03 +02:00
feat: implement main navigation component and integrate protected routing in App structure
This commit is contained in:
1 parent
b06298d80e
commit
2b971f97b3
3 files changed
+220
-1
No files matched your search
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user