From cf81a281889a7f498632b6545acb3ee310f4a4e3 Mon Sep 17 00:00:00 2001 From: MikunoNaka Date: Sun, 15 Aug 2021 14:45:23 +0530 Subject: changed prompt to something easier to read --- src/components/ScoreBoard.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/components/ScoreBoard.js') diff --git a/src/components/ScoreBoard.js b/src/components/ScoreBoard.js index d393285..5ced105 100644 --- a/src/components/ScoreBoard.js +++ b/src/components/ScoreBoard.js @@ -27,10 +27,10 @@ const ScoreBoard = (props) => { O: {props.scoreO}
- -- - {` ${props.turn === 0 ? "O" : "X"}'s turn `} - {props.multiplayer && ` (You are ${props.isHost ? "'X'" : "'O'"}) `} - -- + -- {props.multiplayer + ? ` ${props.turn === 0 ? (props.isHost ? "Opponent's turn" : "Your turn") : (props.isHost ? "Your turn" : "Opponent's turn")} ` + : ` ${props.turn === 0 ? "O" : "X"}'s turn ` + } --
); -- cgit v1.2.3