diff --git a/client/src/pages/Game/Game.jsx b/client/src/pages/Game/Game.jsx index 7066c87..2bd7a0a 100644 --- a/client/src/pages/Game/Game.jsx +++ b/client/src/pages/Game/Game.jsx @@ -6,12 +6,16 @@ import Waiting from "@/pages/Game/states/Waiting"; import Calculate from "@/pages/Game/states/Calculate"; import Sound from "react-sound"; import HintSound from "@/common/sounds/hint.mp3"; +import {MusicContext} from "@/common/contexts/MusicContext.jsx"; export const Game = () => { const {groups} = useContext(GroupContext); const [currentState, setCurrentState] = useState("hint"); + + const {musicEnabled} = useContext(MusicContext); + useEffect(() => { const timeout = setTimeout(() => { setCurrentState("waiting"); @@ -25,7 +29,7 @@ export const Game = () => { return (
{currentState === "hint" && <> - +

Ziel: Erhalte durch den Verkauf von Kuchen so viel Gewinn wie möglich.