-
-
Save LukeSmetham/079b6e98d693479366caa2698165eccf to your computer and use it in GitHub Desktop.
This file contains 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
... | |
class AttendeesChat extends Component { | |
... | |
render() { | |
const { toggleAttendeesChat } = this.props; | |
const { channel, unmount } = this.state; | |
if (!channel || unmount) { | |
return null; | |
} | |
return ( | |
<Portal> | |
<Root style={this.rootStyle}> | |
<Chat client={this.chatClient} theme='messaging dark'> | |
<Channel channel={channel}> | |
<Window hideOnThread> | |
<ChatHeader onClose={toggleAttendeesChat} /> | |
<MessageList /> | |
<MessageInput /> | |
</Window> | |
</Channel> | |
</Chat> | |
</Root> | |
</Portal> | |
); | |
} | |
} | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment