From a65d6d9127c3fa7f6a8ecaec5d1ffd1f47c2bc98 Mon Sep 17 00:00:00 2001
From: Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>
Date: Tue, 3 Sep 2024 00:08:53 +0300
Subject: refactor: port to typescript
---
frontend/src/components/pages/game.js | 46 -----------------------------------
1 file changed, 46 deletions(-)
delete mode 100644 frontend/src/components/pages/game.js
(limited to 'frontend/src/components/pages/game.js')
diff --git a/frontend/src/components/pages/game.js b/frontend/src/components/pages/game.js
deleted file mode 100644
index 301e035..0000000
--- a/frontend/src/components/pages/game.js
+++ /dev/null
@@ -1,46 +0,0 @@
-import React, { useEffect, useRef, useState } from 'react';
-import { useLocation, Link } from "react-router-dom";
-
-import "./games.css"
-
-export default function GameEntry({ gameInfo }) {
- const [gameEntry, setGameEntry] = React.useState(null);
- const location = useLocation();
-
- const gameInfoCats = gameInfo.category_portals;
-
- useEffect(() => {
- gameInfoCats.forEach(catInfo => {
- const itemBody = document.createElement("div");
- const itemTitle = document.createElement("span");
- const spacing = document.createElement("br");
- const itemNum = document.createElement("span");
-
- itemTitle.innerText = catInfo.category.name;
- itemNum.innerText = catInfo.portal_count;
- itemTitle.classList.add("games-page-item-body-item-title");
- itemNum.classList.add("games-page-item-body-item-num");
- itemBody.appendChild(itemTitle);
- itemBody.appendChild(spacing);
- itemBody.appendChild(itemNum);
- itemBody.className = "games-page-item-body-item";
-
- // itemBody.innerHTML = `
- // ${catInfo.category.name}
- // ${catInfo.portal_count}`
-
- document.getElementById(`${gameInfo.id}`).appendChild(itemBody);
- });
- })
-
- return (
-