From e40f07211f5f15dcb138e2520a76d13afd3c0cfd Mon Sep 17 00:00:00 2001
From: FifthWit <fifthwitbusiness@gmail.com>
Date: Thu, 30 Jan 2025 10:44:30 -0600
Subject: formatted with prettier

---
 frontend/src/pages/Games.tsx | 61 ++++++++++++++++++++++----------------------
 1 file changed, 31 insertions(+), 30 deletions(-)

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

diff --git a/frontend/src/pages/Games.tsx b/frontend/src/pages/Games.tsx
index 15cc891..ae0a2d6 100644
--- a/frontend/src/pages/Games.tsx
+++ b/frontend/src/pages/Games.tsx
@@ -3,44 +3,45 @@ import { Helmet } from 'react-helmet';
 
 import GameEntry from '@components/GameEntry';
 import { Game } from '@customTypes/Game';
-import "@css/Maps.css"
+import '@css/Maps.css';
 
 interface GamesProps {
-    games: Game[];
+  games: Game[];
 }
 
 const Games: React.FC<GamesProps> = ({ games }) => {
+  const _page_load = () => {
+    const loaders = document.querySelectorAll('.loader');
+    loaders.forEach(loader => {
+      (loader as HTMLElement).style.display = 'none';
+    });
+  };
 
-    const _page_load = () => {
-        const loaders = document.querySelectorAll(".loader");
-        loaders.forEach((loader) => {
-            (loader as HTMLElement).style.display = "none";
-        });
-    }
+  React.useEffect(() => {
+    document
+      .querySelectorAll('.games-page-item-body')
+      .forEach((game, index) => {
+        game.innerHTML = '';
+      });
+    _page_load();
+  }, []);
 
-    React.useEffect(() => {
-        document.querySelectorAll(".games-page-item-body").forEach((game, index) => {
-            game.innerHTML = "";
-        });
-        _page_load();
-    }, []);
-
-    return (
-        <div className='games-page'>
-            <Helmet>
-                <title>LPHUB | Games</title>
-            </Helmet>
-            <section>
-                <div className='games-page-content'>
-                    <div className='games-page-item-content'>
-                        {games.map((game, index) => (
-                            <GameEntry game={game} key={index} />
-                        ))}
-                    </div>
-                </div>
-            </section>
+  return (
+    <div className="games-page">
+      <Helmet>
+        <title>LPHUB | Games</title>
+      </Helmet>
+      <section>
+        <div className="games-page-content">
+          <div className="games-page-item-content">
+            {games.map((game, index) => (
+              <GameEntry game={game} key={index} />
+            ))}
+          </div>
         </div>
-    );
+      </section>
+    </div>
+  );
 };
 
 export default Games;
-- 
cgit v1.2.3

