File tree Expand file tree Collapse file tree 4 files changed +33
-0
lines changed Expand file tree Collapse file tree 4 files changed +33
-0
lines changed Original file line number Diff line number Diff line change
1
+
2
+
3
+ export const EmptyGroupChannelListIndicator = ( {
4
+
5
+ } ) => {
6
+
7
+ return (
8
+ < div className = "team-empty-channel-list-indicator" > There are no group channels. Start by creating some.</ div >
9
+ ) ;
10
+ } ;
11
+ export const EmptyDMChannelListIndicator = ( {
12
+
13
+ } ) => {
14
+
15
+ return (
16
+ < div className = "team-empty-channel-list-indicator" > There are no DM channels. Start by creating some.</ div >
17
+ ) ;
18
+ } ;
Original file line number Diff line number Diff line change 1
1
import { ChannelList } from 'stream-chat-react' ;
2
2
3
+ import {
4
+ EmptyDMChannelListIndicator ,
5
+ EmptyGroupChannelListIndicator
6
+ } from "./EmptyChannelListIndicator" ;
3
7
import { ChannelSearch } from '../ChannelSearch/ChannelSearch' ;
4
8
import { TeamChannelList } from '../TeamChannelList/TeamChannelList' ;
5
9
import { ChannelPreview } from '../ChannelPreview/ChannelPreview' ;
@@ -40,6 +44,7 @@ const TeamChannelsList = () => (
40
44
filters = { filters [ 0 ] }
41
45
options = { options }
42
46
sort = { sort }
47
+ EmptyStateIndicator = { EmptyGroupChannelListIndicator }
43
48
List = { ( listProps ) => (
44
49
< TeamChannelList
45
50
{ ...listProps }
@@ -62,6 +67,7 @@ const MessagingChannelsList = () => (
62
67
options = { options }
63
68
sort = { sort }
64
69
setActiveChannelOnMount = { false }
70
+ EmptyStateIndicator = { EmptyDMChannelListIndicator }
65
71
List = { ( listProps ) => (
66
72
< TeamChannelList
67
73
{ ...listProps }
Original file line number Diff line number Diff line change 39
39
}
40
40
}
41
41
}
42
+
43
+ .team-empty-channel-list-indicator {
44
+ padding-inline : 1rem ;
45
+ font-size : 0.75rem ;
46
+ }
Original file line number Diff line number Diff line change 25
25
}
26
26
}
27
27
}
28
+
29
+ .team-empty-channel-list-indicator {
30
+ color : white ;
31
+ }
You can’t perform that action at this time.
0 commit comments