fix(react): invalid jsx
This commit is contained in:
parent
0a30fe0cf6
commit
53b1ed4f1b
|
@ -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} />
|
||||||
|
</>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue