diff --git a/apps/Frontend/src/App.tsx b/apps/Frontend/src/App.tsx index f123583..1a0d7ed 100644 --- a/apps/Frontend/src/App.tsx +++ b/apps/Frontend/src/App.tsx @@ -1,4 +1,4 @@ -import { Switch, Route } from "wouter"; +import { Switch, Route, Redirect } from "wouter"; import React, { lazy, Suspense } from "react"; import { Provider } from "react-redux"; import { store } from "./redux/store"; @@ -30,7 +30,9 @@ const NotFound = lazy(() => import("./pages/not-found")); function Router() { return ( - } /> + } /> + + } /> } diff --git a/apps/Frontend/src/components/layout/sidebar.tsx b/apps/Frontend/src/components/layout/sidebar.tsx index 13d2475..bc705cd 100644 --- a/apps/Frontend/src/components/layout/sidebar.tsx +++ b/apps/Frontend/src/components/layout/sidebar.tsx @@ -43,7 +43,7 @@ export function Sidebar() { () => [ { name: "Dashboard", - path: "/", + path: "/dashboard", icon: , }, { diff --git a/apps/Frontend/src/pages/auth-page.tsx b/apps/Frontend/src/pages/auth-page.tsx index 14fd0aa..e47d130 100644 --- a/apps/Frontend/src/pages/auth-page.tsx +++ b/apps/Frontend/src/pages/auth-page.tsx @@ -67,7 +67,7 @@ export default function AuthPage() { useEffect(() => { if (user) { - navigate("/"); + navigate("/patients"); } }, [user, navigate]);