diff --git a/src/components/chat/ChatGroup.tsx b/src/components/chat/ChatGroup.tsx index 47fc9e4..bdb21d7 100644 --- a/src/components/chat/ChatGroup.tsx +++ b/src/components/chat/ChatGroup.tsx @@ -1,9 +1,12 @@ /** @jsxImportSource @emotion/react */ import { css } from '@emotion/react'; import { forwardRef } from 'react'; +import { useRecoilState } from 'recoil'; +import { roomInfoState } from '../../recoil/roominfo/atom'; import { VariablesCSS } from '../../styles/VariablesCSS'; import { Chat } from '../../type'; +import { getPlayerJob } from '../../util/job'; import PlayerChat from '../player/PlayerChat'; import ChatMessage from './ChatMessage'; @@ -15,9 +18,11 @@ interface PropsType { export default forwardRef(function ChatGroup(props: PropsType, ref: any) { const { chats } = props; + const [roomInfo] = useRecoilState(roomInfoState); + return (
{chats[0].name}
{chats.map((chat, idx) => ( diff --git a/src/pages/Night.tsx b/src/pages/Night.tsx index 7aa2c68..e033b59 100644 --- a/src/pages/Night.tsx +++ b/src/pages/Night.tsx @@ -39,7 +39,6 @@ export default function Night({ statusType, publishSkill, mafiaSkillPlayer }: Pr ) : (