Skip to content

Commit 1b07b64

Browse files
committed
chore: use ChannelAvatar in vite example app
1 parent 3bd4bec commit 1b07b64

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

examples/vite/src/App.tsx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { ChannelFilters, ChannelOptions, ChannelSort } from 'stream-chat';
22
import {
33
Channel,
4+
ChannelAvatar,
45
ChannelHeader,
56
ChannelList,
67
Chat,
@@ -73,10 +74,17 @@ const App = () => {
7374
<ChatView>
7475
<ChatView.Selector />
7576
<ChatView.Channels>
76-
<ChannelList filters={filters} options={options} sort={sort} />
77+
<ChannelList
78+
Avatar={ChannelAvatar}
79+
filters={filters}
80+
options={options}
81+
sort={sort}
82+
showChannelSearch
83+
additionalChannelSearchProps={{ searchForChannels: true }}
84+
/>
7785
<Channel>
7886
<Window>
79-
<ChannelHeader />
87+
<ChannelHeader Avatar={ChannelAvatar} />
8088
<MessageList returnAllReadData />
8189
<MessageInput focus />
8290
</Window>

0 commit comments

Comments
 (0)