From 681f7d3ba097cd8d204ff3ac4dae01432d323e5b Mon Sep 17 00:00:00 2001
From: Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>
Date: Thu, 30 Jan 2025 14:43:17 +0300
Subject: feat/frontend: dynamic title and meta descriptions (#261)

---
 frontend/src/pages/Games.tsx | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

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

diff --git a/frontend/src/pages/Games.tsx b/frontend/src/pages/Games.tsx
index 15105c9..15cc891 100644
--- a/frontend/src/pages/Games.tsx
+++ b/frontend/src/pages/Games.tsx
@@ -1,4 +1,5 @@
 import React from 'react';
+import { Helmet } from 'react-helmet';
 
 import GameEntry from '@components/GameEntry';
 import { Game } from '@customTypes/Game';
@@ -11,10 +12,10 @@ interface GamesProps {
 const Games: React.FC<GamesProps> = ({ games }) => {
 
     const _page_load = () => {
-      const loaders = document.querySelectorAll(".loader");
-      loaders.forEach((loader) => {
-          (loader as HTMLElement).style.display = "none";
-      });
+        const loaders = document.querySelectorAll(".loader");
+        loaders.forEach((loader) => {
+            (loader as HTMLElement).style.display = "none";
+        });
     }
 
     React.useEffect(() => {
@@ -26,6 +27,9 @@ const Games: React.FC<GamesProps> = ({ games }) => {
 
     return (
         <div className='games-page'>
+            <Helmet>
+                <title>LPHUB | Games</title>
+            </Helmet>
             <section>
                 <div className='games-page-content'>
                     <div className='games-page-item-content'>
-- 
cgit v1.2.3

