From 5fc5b838ea6545ea6defce17ccff4675ac0aba68 Mon Sep 17 00:00:00 2001 From: arifal Date: Fri, 15 Aug 2025 18:58:19 +0700 Subject: [PATCH] remove login page --- src/App.tsx | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index dd66d67..6e8610c 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -4,7 +4,7 @@ import { Route, Navigate, } from "react-router-dom"; -import Login from "./pages/Login"; +// import Login from "./pages/Login"; // Commented out - login disabled import Dashboard from "./pages/Dashboard"; // Medical Records Components @@ -24,23 +24,19 @@ import { User, Role } from "./pages/system-administration"; import NotFound from "./pages/NotFound"; import NotFoundProtected from "./pages/NotFoundProtected"; import Layout from "./components/Layout"; -import ProtectedRoute from "./components/ProtectedRoute"; +// import ProtectedRoute from "./components/ProtectedRoute"; // Commented out - authentication disabled function App() { return ( - } /> + {/* } /> */}{" "} + {/* Commented out - login disabled */} - - - } + element={} // Removed ProtectedRoute wrapper - direct access to dashboard > } /> - {/* Medical Records Routes */} } /> } /> - {/* Data Integration Routes */} } /> } /> - {/* System Administration Routes */} } /> } /> - {/* Legacy Routes (redirects to new organized routes) */} } /> - - } /> + } />{" "} + {/* Dashboard is now the default landing page */} {/* Protected 404 - untuk route di dalam layout sidebar */} } />