Fixed socket event listeners removal

This commit is contained in:
aronmal 2023-08-05 23:22:09 +02:00
parent 7f350393ff
commit a95c0b1f7f
Signed by: aronmal
GPG key ID: 816B7707426FC612
8 changed files with 88 additions and 63 deletions

View file

@ -7,14 +7,7 @@ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"
import { useGameProps } from "@hooks/useGameProps"
import classNames from "classnames"
import { ReactNode, useMemo } from "react"
type GameSettingKeys =
| "allowSpectators"
| "allowSpecials"
| "allowChat"
| "allowMarkDraw"
export type GameSettings = { [key in GameSettingKeys]?: boolean }
import { GameSettingKeys } from "../../../interfaces/frontend"
function Setting({
children,