offline sync working partialy

This commit is contained in:
2025-12-23 16:51:27 +01:00
parent 4535d6fc1c
commit e65567a1a4
8 changed files with 288 additions and 29 deletions

View File

@@ -4,8 +4,11 @@ import LoginPage from "@/pages/login";
import RegisterPage from "@/pages/register";
import DashboardPage from "@/pages/dashboard";
import Layout from "@/components/layout";
import { useSync } from "@/lib/sync";
function App() {
useSync();
return (
<Routes>
{/* Public Routes (only accessible if NOT logged in) */}
@@ -17,8 +20,8 @@ function App() {
{/* Protected Routes (only accessible if logged in) */}
<Route element={<ProtectedRoute />}>
<Route element={<Layout />}>
<Route path="/" element={<DashboardPage />} />
<Route path="/archive" element={<DashboardPage />} />
<Route path="/" element={<DashboardPage />} />
<Route path="/archive" element={<DashboardPage />} />
</Route>
</Route>