Created
April 21, 2018 20:11
-
-
Save bookercodes/0041bbccba3750110a10e4968f897aec to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
render() { | |
return ( | |
<div | |
style={{ | |
display: 'flex', | |
height: '100vh', | |
}} | |
> | |
<div | |
style={{ | |
width: '30%', | |
backgroundColor: 'tomato', | |
}} | |
> | |
<h2>Who's Online</h2> | |
</div> | |
<div | |
style={{ | |
display: 'flex', | |
flexDirection: 'column', | |
}} | |
> | |
<h2>Chat</h2> | |
<div | |
style={{ | |
flex: 1, | |
}} | |
> | |
<MessageList messages={this.state.messages} /> | |
</div> | |
<TypingIndicator usersWhoAreTyping={this.state.usersWhoAreTyping} /> | |
<SendMessageForm | |
onSubmit={this.sendMessage} | |
onChange={this.sendTypingEvent} | |
/> | |
</div> | |
</div> | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment