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}