feat: Implement initial application structure with routing, authentication flow, and responsive layout.

This commit is contained in:
Michael committed 2025-12-01 11:32:12 +01:00
1 parent 7592c2781e
commit f27a75d9d6
3 files changed
+157 -154

No files matched your search

+2 -5
View File
@@ -55,12 +55,9 @@ function PublicRoute({ children }) {
}
function AppRoutes() {
const { theme, toggleTheme } = useTheme();
const { isAuthenticated } = useAuth();
return (
<>
<Toaster position="bottom-right" theme={theme} />
<Toaster position="bottom-right" />
<Routes>
<Route
path="/login"
@@ -74,7 +71,7 @@ function AppRoutes() {
path="/*"
element={
<ProtectedRoute>
<Layout theme={theme} toggleTheme={toggleTheme}>
<Layout>
<Routes>
<Route path="/" element={<Dashboard />} />
<Route path="/search" element={<Search />} />