From ab40abf5b3cbf0738a949a6e36ee064ad244a79e Mon Sep 17 00:00:00 2001 From: chyoo Date: Thu, 9 Jul 2026 15:34:04 +0900 Subject: [PATCH] add images for chatting room title --- src/components/InstructorChatPanel.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/InstructorChatPanel.tsx b/src/components/InstructorChatPanel.tsx index b7b02bf..664cd3d 100644 --- a/src/components/InstructorChatPanel.tsx +++ b/src/components/InstructorChatPanel.tsx @@ -222,7 +222,7 @@ function ThreadCard({ thread, onOpen }: { thread: InstructorChatThread; onOpen: ); } -function StudentAvatar({ thread }: { thread: InstructorChatThread }) { +function StudentAvatar({ thread, size = 'md' }: { thread: InstructorChatThread; size?: 'sm' | 'md' }) { const [avatarFailed, setAvatarFailed] = useState(false); useEffect(() => { @@ -230,7 +230,7 @@ function StudentAvatar({ thread }: { thread: InstructorChatThread }) { }, [thread.studentAvatarUrl]); return ( - + {thread.studentAvatarUrl && !avatarFailed ? ( setAvatarFailed(true)} /> ) : ( @@ -291,6 +291,7 @@ function ChatRoom({ +

{thread.studentName}