From 00ffea6a46890bdeac160f8a35b91a7d9298b721 Mon Sep 17 00:00:00 2001
From: Pinapelz <yukais@pinapelz.com>
Date: Sun, 26 Oct 2025 21:12:30 -0700
Subject: create component for loading screen

---
 frontend/src/pages/AllScores.tsx | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

(limited to 'frontend/src/pages/AllScores.tsx')

diff --git a/frontend/src/pages/AllScores.tsx b/frontend/src/pages/AllScores.tsx
index 1f7becf..c967ff0 100644
--- a/frontend/src/pages/AllScores.tsx
+++ b/frontend/src/pages/AllScores.tsx
@@ -1,4 +1,5 @@
 import { useEffect, useState, useCallback } from "react";
+import LoadingDisplay from "../components/displays/LoadingDisplay";
 import { useAuth } from "../contexts/AuthContext";
 import { useNavigate } from "react-router";
 import { NavBar } from "../components/NavBar";
@@ -190,12 +191,7 @@ const AllScores = () => {
 
   if (isLoading) {
     return (
-      <div className="min-h-screen bg-linear-to-br from-slate-950 via-slate-900 to-slate-950 flex items-center justify-center">
-        <div className="text-center">
-          <div className="w-12 h-12 border-4 border-violet-500 border-t-transparent rounded-full animate-spin mx-auto mb-6"></div>
-          <p className="text-slate-300 text-lg">Loading games...</p>
-        </div>
-      </div>
+      <LoadingDisplay message="Loading Community Scores..." />
     );
   }
 
-- 
cgit v1.2.3

