Skip to content

Commit

Permalink
Fix: 오픈 채팅방 단일 객체로 받아서 보여주기로 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
JitHoon committed Nov 9, 2023
1 parent 0498d55 commit d994753
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Components/Search/ShowAllOpenChat.tsx
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
import React from 'react';
import { AllOpenChat } from '@/app/search/search.type';
import { Chat } from '@/app/search/search.type';
import OpenChatText from './OpenChatText';
import OpenChatPicture from './OpenChatPicture';

// 채팅방 이름, 채팅방 참여자 수, 최근 대화 시간
const ShowAllOpenChat = ({ allOpenChat }: { allOpenChat: AllOpenChat }) => {
const ShowAllOpenChat = ({ openChat }: { openChat: Chat }) => {
return (
<ul>
{allOpenChat.map((openChat) => (
{
<li key={openChat.id}>
<OpenChatText openChat={openChat} />
<OpenChatPicture openChatUsers={openChat.users} />
</li>
))}
}
</ul>
);
};
Expand Down

0 comments on commit d994753

Please sign in to comment.