Use contentEditable for chat input field
This commit is contained in:
@@ -26,15 +26,14 @@ export default function ChatContainer(props: Props) {
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
return null;
|
||||
};
|
||||
|
||||
console.log(messages);
|
||||
return (
|
||||
<div>
|
||||
<h1>Chat</h1>
|
||||
<Spin spinning={loading} indicator={spinIcon} />
|
||||
<Virtuoso
|
||||
style={{ height: '80vh' }}
|
||||
ref={chatContainerRef}
|
||||
initialTopMostItemIndex={999}
|
||||
data={messages}
|
||||
|
||||
Reference in New Issue
Block a user