File tree Expand file tree Collapse file tree 2 files changed +17
-17
lines changed Expand file tree Collapse file tree 2 files changed +17
-17
lines changed Original file line number Diff line number Diff line change @@ -30,21 +30,17 @@ const UnreadCount = styled.Text`
3030 ${ ( { theme } ) => theme . iconBadge . unreadCount . css } ;
3131` ;
3232
33- export class IconBadge extends React . Component {
34- render ( ) {
35- const { children, showNumber, unread } = this . props ;
33+ const IconBadge = ( { children, showNumber, unread } ) => (
34+ < Container >
35+ { children }
36+ { unread > 0 && (
37+ < Icon >
38+ < IconInner >
39+ { showNumber && < UnreadCount > { unread } </ UnreadCount > }
40+ </ IconInner >
41+ </ Icon >
42+ ) }
43+ </ Container >
44+ ) ;
3645
37- return (
38- < Container >
39- { children }
40- { unread > 0 && (
41- < Icon >
42- < IconInner >
43- { showNumber && < UnreadCount > { unread } </ UnreadCount > }
44- </ IconInner >
45- </ Icon >
46- ) }
47- </ Container >
48- ) ;
49- }
50- }
46+ export default IconBadge ;
Original file line number Diff line number Diff line change @@ -68,6 +68,8 @@ import SuggestionsList from './SuggestionsProvider/SuggestionsList';
6868import SuggestionsProvider from './SuggestionsProvider/SuggestionsProvider' ;
6969
7070import Thread from './Thread/Thread' ;
71+ import IconBadge from './IconBadge' ;
72+ import IconSquare from './IconSquare' ;
7173
7274export {
7375 ActionSheetAttachment ,
@@ -124,4 +126,6 @@ export {
124126 TypingIndicator ,
125127 TypingIndicatorContainer ,
126128 UploadProgressIndicator ,
129+ IconBadge ,
130+ IconSquare ,
127131} ;
You can’t perform that action at this time.
0 commit comments