Skip to content

Commit

Permalink
chore: use ChannelAvatar in vite example app
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinCupela committed Nov 8, 2024
1 parent 3bd4bec commit 1b07b64
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions examples/vite/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { ChannelFilters, ChannelOptions, ChannelSort } from 'stream-chat';
import {
Channel,
ChannelAvatar,
ChannelHeader,
ChannelList,
Chat,
Expand Down Expand Up @@ -73,10 +74,17 @@ const App = () => {
<ChatView>
<ChatView.Selector />
<ChatView.Channels>
<ChannelList filters={filters} options={options} sort={sort} />
<ChannelList
Avatar={ChannelAvatar}
filters={filters}
options={options}
sort={sort}
showChannelSearch
additionalChannelSearchProps={{ searchForChannels: true }}
/>
<Channel>
<Window>
<ChannelHeader />
<ChannelHeader Avatar={ChannelAvatar} />
<MessageList returnAllReadData />
<MessageInput focus />
</Window>
Expand Down

0 comments on commit 1b07b64

Please sign in to comment.