Skip to content

Instantly share code, notes, and snippets.

@sendbird-community
Created September 23, 2021 15:01
Show Gist options
  • Save sendbird-community/2eb1feda242bdf41e1526029fa8b7410 to your computer and use it in GitHub Desktop.
Save sendbird-community/2eb1feda242bdf41e1526029fa8b7410 to your computer and use it in GitHub Desktop.
<div className="sendbird-app__channellist-wrap">
<h1 className="server-headline">{lowerCaseServerName}</h1>
<div className="private-channel-list">
<SBChannelList
onChannelSelect={(channel) => {
if (channel && channel.url) {
setCurrentChannel(channel);
}
}}
renderChannelPreview={
customizedPreviewItem
? ({ channel, onLeaveChannel }) => (
<CustomizedChannelPreviewItem
userId={userId}
channel={channel}
onLeaveChannel={onLeaveChannel}
currentChannelUrl={currentChannelUrl}
/>
)
: null
}
/>
</div>
<div className="community-app">
<div className="community-channel-list">
<CommunityChannelList
userId={userId}
appId={appId}
currentChannelUrl={currentChannelUrl}
setCurrentChannel={setCurrentChannel}
/>
</div>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment