diff options
author | MikunoNaka <bokuwakanojogahoshii@yahoo.com> | 2021-07-21 19:43:33 +0530 |
---|---|---|
committer | MikunoNaka <bokuwakanojogahoshii@yahoo.com> | 2021-07-21 19:43:33 +0530 |
commit | 87e3e6bf66dc18a324417e05043874792749a8c5 (patch) | |
tree | 92948b725b200a0e0f7d8574934a1b4d45b6f11b /src/components/ScoreBoard.tsx | |
parent | 2219ac3e3db3ead7cb9b8ef88726225b1754d6f3 (diff) |
Fixed styling and add prompt for player
Diffstat (limited to 'src/components/ScoreBoard.tsx')
-rw-r--r-- | src/components/ScoreBoard.tsx | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/components/ScoreBoard.tsx b/src/components/ScoreBoard.tsx index 6d51deb..b50af30 100644 --- a/src/components/ScoreBoard.tsx +++ b/src/components/ScoreBoard.tsx @@ -22,13 +22,17 @@ import './style.css'; interface Props { scoreX: number scoreO: number + turn: number } const ScoreBoard: React.FC<Props> = (props) => { return ( - <div className={"ScoreBoard"}> - <span>X: {props.scoreX}</span> - <span>O: {props.scoreO}</span> + <div className={"ScoreBoardContainer"}> + <div className={"ScoreBoard"}> + <span>X: {props.scoreX}</span> + <span>O: {props.scoreO}</span> + </div> + <div className={"turnMessage"}>-- {props.turn === 0 ? "O" : "X"}'s turn --</div> </div> ); } |