feat: add department dashboard

This commit is contained in:
ARJUN S THAMPI
2026-03-16 17:55:33 +05:30
parent aaa62ae3f5
commit 46bbd8106b
23 changed files with 1621 additions and 684 deletions

View File

@@ -0,0 +1,7 @@
import {Navigate, Outlet} from "react-router-dom";
import {useAuth} from "@/context/AuthContext";
export default function PublicRoute() {
const {token} = useAuth();
return token ? <Navigate to="/dashboard" replace /> : <Outlet />;
}