Update App.tsx

This commit is contained in:
alorig
2025-11-28 06:28:07 +05:00
parent cc4752a25a
commit 04ee3e2e98

View File

@@ -16,6 +16,7 @@ import NotFound from "./pages/OtherPage/NotFound";
// Lazy load all other pages - only loads when navigated to
const Home = lazy(() => import("./pages/Dashboard/Home"));
const AIControlHub = lazy(() => import("./pages/AIControlHub"));
// Planner Module - Lazy loaded
const PlannerDashboard = lazy(() => import("./pages/Planner/Dashboard"));
@@ -177,6 +178,11 @@ export default function App() {
<Home />
</Suspense>
} />
<Route path="/ai-control-hub" element={
<Suspense fallback={null}>
<AIControlHub />
</Suspense>
} />
{/* Planner Module - Redirect dashboard to keywords */}
<Route path="/planner" element={<Navigate to="/planner/keywords" replace />} />