Skip to content

Commit

Permalink
Feat: 채팅에 필요한 데이터를 props 로 넘겨주도록 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
pp449 committed Oct 7, 2023
1 parent b50ec60 commit 110b31e
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions src/components/RoundCheckIn/CheckInPage.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Icon from '@components/Icon';
import { MatchPlayerScoreInfos } from '@components/RoundCheckIn';
import { MatchMessages, MatchPlayerScoreInfos } from '@components/RoundCheckIn';
import CallAdminChat from '@components/RoundCheckIn/CallAdminChat';
import styled from '@emotion/styled';
import { Client } from '@stomp/stompjs';
Expand All @@ -9,9 +9,18 @@ interface CheckInPageProps {
client: Client | undefined;
matchId: string;
players: MatchPlayerScoreInfos[];
matchMessage: MatchMessages[];
requestUser: number;
}

const CheckInPage = ({ ParticipantCheckin, client, matchId, players }: CheckInPageProps) => {
const CheckInPage = ({
ParticipantCheckin,
client,
matchId,
players,
matchMessage,
requestUser,
}: CheckInPageProps) => {
return (
<Container>
<RemainTimeWrapper>
Expand All @@ -24,7 +33,13 @@ const CheckInPage = ({ ParticipantCheckin, client, matchId, players }: CheckInPa
<Button>기권</Button>
</ButtonWrapper>
<ChattingWrapper>
<CallAdminChat client={client} matchId={matchId} players={players} />
<CallAdminChat
client={client}
matchId={matchId}
players={players}
matchMessage={matchMessage}
requestUser={requestUser}
/>
</ChattingWrapper>
</Container>
);
Expand Down

0 comments on commit 110b31e

Please sign in to comment.