Skip to content

Instantly share code, notes, and snippets.

@LukeSmetham
Created September 24, 2019 15:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save LukeSmetham/079b6e98d693479366caa2698165eccf to your computer and use it in GitHub Desktop.
Save LukeSmetham/079b6e98d693479366caa2698165eccf to your computer and use it in GitHub Desktop.
...
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