Skip to content

Commit e286379

Browse files
committed
adjust ts sample app
1 parent 0f578aa commit e286379

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

examples/typescript-app/src/App.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,10 @@ import {
99
MessageSimple,
1010
ChannelHeader,
1111
ChannelPreviewMessenger,
12-
InfiniteScrollPaginator,
1312
ChannelListMessenger,
1413
ChannelList,
1514
Window,
1615
Thread,
17-
Theme,
1816
} from 'stream-chat-react';
1917
import 'stream-chat-react/dist/css/index.css';
2018
import './App.css';
@@ -50,16 +48,13 @@ class App extends Component {
5048

5149
render() {
5250
return (
53-
<Chat client={this.chatClient} theme={`messaging ${theme}` as Theme}>
51+
<Chat client={this.chatClient} theme={`messaging ${theme}`}>
5452
<ChannelList
5553
List={ChannelListMessenger}
5654
Preview={ChannelPreviewMessenger}
5755
filters={filters}
5856
sort={sort}
5957
options={options}
60-
Paginator={(props) => (
61-
<InfiniteScrollPaginator threshold={300} {...props} />
62-
)}
6358
/>
6459
<Channel>
6560
<Window>

0 commit comments

Comments
 (0)