diff options
author | lonkaars <l.leblansch@gmail.com> | 2021-02-21 10:30:33 +0100 |
---|---|---|
committer | lonkaars <l.leblansch@gmail.com> | 2021-02-21 10:30:33 +0100 |
commit | 980e0ebbcff5bbb9d27394dcb4ba6f61980418b0 (patch) | |
tree | be338a7ae6f58b9582e2342913b88c025479dc43 /components | |
parent | ff83a204a27a5c37a5061857f2bc67a3d7f05d46 (diff) |
hide new game dialog while looking for game + gamebar move works
Diffstat (limited to 'components')
-rw-r--r-- | components/gameBar.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/components/gameBar.tsx b/components/gameBar.tsx index b1e6a2d..a2ced12 100644 --- a/components/gameBar.tsx +++ b/components/gameBar.tsx @@ -28,6 +28,7 @@ var GameBarAlignStyle: CSSProperties = { export function GameBar(props: { turn: boolean; + player1: boolean; }) { return <Vierkant className="gameBar" style={{ padding: 8, @@ -47,7 +48,7 @@ export function GameBar(props: { margin: 12, verticalAlign: "top", display: "inline-block" - }}>{ props.turn ? "Jouw beurt" : "Tegenstander" }</h2> + }}>{ props.turn == props.player1 ? "Jouw beurt" : "Tegenstander" }</h2> </div> <div style={{ ...GameBarAlignStyle, |