Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 2 additions & 47 deletions frontend/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,53 +91,8 @@ const App = () => {
<BrowserRouter>
<Navbar />
<main className="app-bg min-h-screen pt-15 flex flex-col">
<Routes>
<Route path="/" element={<PublicRoute><AuthLayout><Login /></AuthLayout></PublicRoute>} />
<Route path="/login" element={<PublicRoute><AuthLayout><Login /></AuthLayout></PublicRoute>} />
<Route path="/signup" element={<PublicRoute><AuthLayout><Signup /></AuthLayout></PublicRoute>} />
<Route path="/about" element={<AuthLayout><About /></AuthLayout>} />
<Route
path="/dashboard"
element={
<ProtectedRoutes>
<Dashboard />
</ProtectedRoutes>
}
/>
<Route
path="/tasks"
element={
<ProtectedRoutes>
<Tasks />
</ProtectedRoutes>
}
/>
<Route
path="/routine-builder"
element={
<ProtectedRoutes>
<RoutineBuilder />
</ProtectedRoutes>
}
/>
<Route
path="/profile"
element={
<ProtectedRoutes>
<Profile />
</ProtectedRoutes>
}
/>
<Route
path="/analytics"
element={
<ProtectedRoutes>
<Analytics />
</ProtectedRoutes>
}
/>
<Route path="*" element={<NotFound />} />
</Routes>
<AnimatedRoutes/>

</main>
<Footer />
<ScrollToTop />
Expand Down