diff --git a/client/src/App.tsx b/client/src/App.tsx index 0a63c5d..f979657 100644 --- a/client/src/App.tsx +++ b/client/src/App.tsx @@ -2,16 +2,15 @@ import { lazy, Suspense } from 'react'; import { QueryClient, QueryClientProvider } from '@tanstack/react-query'; import { BrowserRouter, Routes, Route, Navigate, Link } from 'react-router-dom'; import Layout from '@/components/Layout'; +import AuthGuard from '@/components/AuthGuard'; // Lightweight pages stay in the main chunk. import Extensions from '@/pages/Extensions'; import Faq from '@/pages/Faq'; -// Heavy pages lazy-load — keeps the initial bundle small so the home -// screen and quick tools (Extensions, FAQ) paint fast, and users only -// download the big clinical-reference tables (PE_DATA, Fenton LMS, -// Rosner BP splines, Bedside drug panels, Admin sub-tabs) when they -// open those specific routes. +// Heavy pages lazy-load — keeps the initial bundle small. +const Auth = lazy(() => import('@/pages/Auth')); +const ResetPassword = lazy(() => import('@/pages/ResetPassword')); const Dictation = lazy(() => import('@/pages/Dictation')); const Encounter = lazy(() => import('@/pages/Encounter')); const Soap = lazy(() => import('@/pages/Soap')); @@ -41,19 +40,18 @@ function RouteFallback() { function Home() { return (
- This is the new React tree. The legacy vanilla-JS app still lives at{' '} - /. -
-Quick links:
+Pick a tool from the sidebar.