aboutsummaryrefslogtreecommitdiff
path: root/components/gameBar.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'components/gameBar.tsx')
-rw-r--r--components/gameBar.tsx3
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,