fix(react): invalid jsx

This commit is contained in:
Pavel Prichodko 2022-06-22 14:49:53 +02:00
parent 0a30fe0cf6
commit 53b1ed4f1b
No known key found for this signature in database
GPG Key ID: 0EB8D75C775AB6F1
1 changed files with 5 additions and 6 deletions

View File

@ -59,13 +59,12 @@ const Body = () => {
<> <>
<ContentWrapper ref={contentRef}> <ContentWrapper ref={contentRef}>
<ChatStart chatId={chatId} /> <ChatStart chatId={chatId} />
{messages.data.map((message, index) => ( {messages.data.map(message => (
<ChatMessage <ChatMessage key={message.messageId} message={message} />
key={message.messageId} ))}
message={message}
previousMessage={messages.data[index - 1]}
/>
</ContentWrapper> </ContentWrapper>
<ChatInput onSubmit={handleMessageSubmit} />
</>
) )
} }