ref(chat): clean up extra dom

This commit is contained in:
Leonard Kim
2019-05-03 14:26:28 -07:00
committed by virtuacoplenny
parent a8233bdb84
commit a49f62238b
2 changed files with 29 additions and 36 deletions

View File

@@ -103,15 +103,12 @@ class Chat extends AbstractChat<Props> {
ref = { this._setMessageListEndRef } />);
return (
<div
className = 'sideToolbarContainer__inner'
id = 'chat_container'>
{ this._renderChatHeader() }
<>
<div id = 'chatconversation'>
{ messages }
</div>
<ChatInput />
</div>
</>
);
}
@@ -167,11 +164,11 @@ class Chat extends AbstractChat<Props> {
const ComponentToRender = !_isOpen && state === 'exited'
? null
: (
<div>
<>
{ this._renderChatHeader() }
{ _showNamePrompt
? <DisplayNameForm /> : this._renderChat() }
</div>
</>
);
let className = '';
@@ -183,7 +180,7 @@ class Chat extends AbstractChat<Props> {
return (
<div
className = { className }
className = { `sideToolbarContainer ${className}` }
id = 'sideToolbarContainer'>
{ ComponentToRender }
</div>