Skip to content

Instantly share code, notes, and snippets.

@isaidspaghetti
Last active August 21, 2020 16:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save isaidspaghetti/df91e8741a82e9bb890f1063b8252f38 to your computer and use it in GitHub Desktop.
Save isaidspaghetti/df91e8741a82e9bb890f1063b8252f38 to your computer and use it in GitHub Desktop.
// frontend/src/Customer.js:66
if (channel) {
return (
<Chat client={chatClient} theme="commerce light">
<Channel channel={channel}>
<Window>
<div className="stream-header">
<div className="str-header-left">
<p className="stream-header-left-title">
Customer Support Chat
</p>
</div>
<div className="str-chat__header-livestream-right">
Second National Bank
</div>
</div>
<MessageList
typingIndicator={TypingIndicator}
Message={MessageCommerce}
/>
<MessageInput Input={MessageInputFlat} focus />
</Window>
</Channel>
</Chat>
);
} else {
//...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment