diff options
| author | FifthWit <fifthwitbusiness@gmail.com> | 2025-01-30 13:11:48 -0600 |
|---|---|---|
| committer | FifthWit <fifthwitbusiness@gmail.com> | 2025-01-30 13:11:48 -0600 |
| commit | 81342e2579165ebfdb28c749dc5225141721a419 (patch) | |
| tree | 8e5759c20b92408048fe5ac44f48e2df2a00ab9b /frontend/src/pages/Games.tsx | |
| parent | fixed issues with useCallback (diff) | |
| download | lphub-81342e2579165ebfdb28c749dc5225141721a419.tar.gz lphub-81342e2579165ebfdb28c749dc5225141721a419.tar.bz2 lphub-81342e2579165ebfdb28c749dc5225141721a419.zip | |
switched to double quotes
Diffstat (limited to 'frontend/src/pages/Games.tsx')
| -rw-r--r-- | frontend/src/pages/Games.tsx | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/frontend/src/pages/Games.tsx b/frontend/src/pages/Games.tsx index ae0a2d6..d7dacde 100644 --- a/frontend/src/pages/Games.tsx +++ b/frontend/src/pages/Games.tsx | |||
| @@ -1,9 +1,9 @@ | |||
| 1 | import React from 'react'; | 1 | import React from "react"; |
| 2 | import { Helmet } from 'react-helmet'; | 2 | import { Helmet } from "react-helmet"; |
| 3 | 3 | ||
| 4 | import GameEntry from '@components/GameEntry'; | 4 | import GameEntry from "@components/GameEntry"; |
| 5 | import { Game } from '@customTypes/Game'; | 5 | import { Game } from "@customTypes/Game"; |
| 6 | import '@css/Maps.css'; | 6 | import "@css/Maps.css"; |
| 7 | 7 | ||
| 8 | interface GamesProps { | 8 | interface GamesProps { |
| 9 | games: Game[]; | 9 | games: Game[]; |
| @@ -11,17 +11,17 @@ interface GamesProps { | |||
| 11 | 11 | ||
| 12 | const Games: React.FC<GamesProps> = ({ games }) => { | 12 | const Games: React.FC<GamesProps> = ({ games }) => { |
| 13 | const _page_load = () => { | 13 | const _page_load = () => { |
| 14 | const loaders = document.querySelectorAll('.loader'); | 14 | const loaders = document.querySelectorAll(".loader"); |
| 15 | loaders.forEach(loader => { | 15 | loaders.forEach(loader => { |
| 16 | (loader as HTMLElement).style.display = 'none'; | 16 | (loader as HTMLElement).style.display = "none"; |
| 17 | }); | 17 | }); |
| 18 | }; | 18 | }; |
| 19 | 19 | ||
| 20 | React.useEffect(() => { | 20 | React.useEffect(() => { |
| 21 | document | 21 | document |
| 22 | .querySelectorAll('.games-page-item-body') | 22 | .querySelectorAll(".games-page-item-body") |
| 23 | .forEach((game, index) => { | 23 | .forEach((game, index) => { |
| 24 | game.innerHTML = ''; | 24 | game.innerHTML = ""; |
| 25 | }); | 25 | }); |
| 26 | _page_load(); | 26 | _page_load(); |
| 27 | }, []); | 27 | }, []); |