Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
...
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
You can’t perform that action at this time.