File tree Expand file tree Collapse file tree 3 files changed +11
-1
lines changed
Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import Navbar from "./shared/components/Navbar/Navbar";
44import Chat from "./Chat" ;
55import LoadingPage from "./pages/LoadingPage" ;
66
7+ // Lazy-loading for less frequented pages
78const About = lazy ( ( ) => import ( "./About" ) ) ;
89const Disclaimer = lazy ( ( ) => import ( "./Disclaimer" ) ) ;
910const PrivacyPolicy = lazy ( ( ) => import ( "./PrivacyPolicy" ) ) ;
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ export default function LoadingPage() {
22 return (
33 < div className = "flex items-center justify-center h-screen" >
44 < div className = "text-center bg-paper-background/60 rounded-lg p-10" >
5- < div className = "animate-spin rounded-full h-12 w-12 border-b-3 border-blue-dark mx-auto mb-4" />
5+ < div className = "animate-spin rounded-full h-12 w-12 border-b-4 border-blue-dark mx-auto mb-4" />
66 < p className = "text-xl" > Loading...</ p >
77 </ div >
88 </ div >
Original file line number Diff line number Diff line change 1+ import { render , screen } from "@testing-library/react" ;
2+ import LoadingPage from "../../pages/LoadingPage" ;
3+
4+ describe ( "LoadingPage" , ( ) => {
5+ it ( "renders loading spinner and text" , ( ) => {
6+ render ( < LoadingPage /> ) ;
7+ expect ( screen . getByText ( "Loading..." ) ) . toBeInTheDocument ( ) ;
8+ } ) ;
9+ } ) ;
You can’t perform that action at this time.
0 commit comments