Integrated the LegalArea into the App.jsx

This commit is contained in:
Mathias Wagner 2023-06-09 03:15:39 +02:00
parent ffa52dfb94
commit a70ff33756

View File

@ -3,6 +3,7 @@ import {useContext} from "react";
import {StateContext} from "@/common/contexts/StateContext";
import GameCreation from "@/pages/GameCreation";
import Game from "@/pages/Game";
import LegalArea from "@/common/components/LegalArea";
const App = () => {
const {currentState} = useContext(StateContext);
@ -12,6 +13,8 @@ const App = () => {
{currentState === "Home" && <Home />}
{currentState === "GameCreation" && <GameCreation />}
{currentState === "Game" && <Game />}
<LegalArea />
</>
)
}