Integrated the LegalArea into the App.jsx
This commit is contained in:
parent
ffa52dfb94
commit
a70ff33756
@ -3,6 +3,7 @@ import {useContext} from "react";
|
|||||||
import {StateContext} from "@/common/contexts/StateContext";
|
import {StateContext} from "@/common/contexts/StateContext";
|
||||||
import GameCreation from "@/pages/GameCreation";
|
import GameCreation from "@/pages/GameCreation";
|
||||||
import Game from "@/pages/Game";
|
import Game from "@/pages/Game";
|
||||||
|
import LegalArea from "@/common/components/LegalArea";
|
||||||
|
|
||||||
const App = () => {
|
const App = () => {
|
||||||
const {currentState} = useContext(StateContext);
|
const {currentState} = useContext(StateContext);
|
||||||
@ -12,6 +13,8 @@ const App = () => {
|
|||||||
{currentState === "Home" && <Home />}
|
{currentState === "Home" && <Home />}
|
||||||
{currentState === "GameCreation" && <GameCreation />}
|
{currentState === "GameCreation" && <GameCreation />}
|
||||||
{currentState === "Game" && <Game />}
|
{currentState === "Game" && <Game />}
|
||||||
|
|
||||||
|
<LegalArea />
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user