diff options
| author | Pinapelz <yukais@pinapelz.com> | 2025-10-26 21:12:30 -0700 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2025-10-26 21:12:30 -0700 |
| commit | 00ffea6a46890bdeac160f8a35b91a7d9298b721 (patch) | |
| tree | e3e16e6008624ef1cffb94e7f8b5a6a1fafb41ad /frontend/src/pages/Home.tsx | |
| parent | 016a4f266b3275ff2e66c7cf9fdf8da3d7a04c11 (diff) | |
create component for loading screen
Diffstat (limited to 'frontend/src/pages/Home.tsx')
| -rw-r--r-- | frontend/src/pages/Home.tsx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/frontend/src/pages/Home.tsx b/frontend/src/pages/Home.tsx index ee31a3f..3fcb5cc 100644 --- a/frontend/src/pages/Home.tsx +++ b/frontend/src/pages/Home.tsx @@ -1,4 +1,5 @@ import { useNavigate } from "react-router"; +import LoadingDisplay from "../components/displays/LoadingDisplay"; import { NavBar } from "../components/NavBar"; import { useAuth } from "../contexts/AuthContext"; import type { SupportedGame } from "../types/game"; @@ -77,12 +78,7 @@ const Home = () => { if (isLoading || gamesLoading) { return ( - <div className="min-h-screen bg-slate-950 flex items-center justify-center"> - <div className="text-center"> - <div className="w-8 h-8 border-2 border-violet-500 border-t-transparent rounded-full animate-spin mx-auto mb-4"></div> - <p className="text-slate-300">Loading dashboard...</p> - </div> - </div> + <LoadingDisplay /> ); } |
