From 4d08fd190c2f7f5575755233344180802d80a608 Mon Sep 17 00:00:00 2001 From: SkyEye_FAST Date: Tue, 27 Jul 2021 16:26:16 +0800 Subject: [PATCH] Update room.tsx MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit blue -> #2376b7 (花青) green -> #207f4c (薄荷绿) yellow -> #ff9900 (雄黄) red -> #c21f30 (枫叶红) --- packages/web/src/pages/room.tsx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/web/src/pages/room.tsx b/packages/web/src/pages/room.tsx index a347956..d6f41a5 100644 --- a/packages/web/src/pages/room.tsx +++ b/packages/web/src/pages/room.tsx @@ -127,13 +127,13 @@ const RoomPage = () => { setTimeMax(10); if (data.data === 'skipped') { answerChatRef.current = [...answerChatRef.current, { - sender: {data.sender}, - data: 错过了他的回合, + sender: {data.sender}, + data: 错过了他的回合, }]; } else { answerChatRef.current = [...answerChatRef.current, { - sender: 正确答案, - data: {data.data}, + sender: 正确答案, + data: {data.data}, }]; } setAnswerChat(answerChatRef.current); @@ -153,7 +153,7 @@ const RoomPage = () => { type chatKey = keyof typeof gameChatMap; if (Object.keys(gameInfoMap).includes(data.data)) { answerChatRef.current = [...answerChatRef.current, { - data: {gameInfoMap[data.data as infoKey]}, + data: {gameInfoMap[data.data as infoKey]}, }]; setAnswerChat(answerChatRef.current); } else if (Object.keys(gameChatMap).includes(data.data)) { @@ -169,8 +169,8 @@ const RoomPage = () => { SuccessSound.play(); if (data.data) { answerChatRef.current = [...answerChatRef.current, { - sender: {player?.username}, - data: 猜对了, + sender: {player?.username}, + data: 猜对了, }]; setAnswerChat(answerChatRef.current); }