@@ -15,6 +15,7 @@ import * as logic from './logic'
15
15
import PostsBanner from './PostsBanner'
16
16
import JobsBanner from './JobsBanner'
17
17
import VideosBanner from './VideosBanner'
18
+ import ReposBanner from './ReposBanner'
18
19
import TagsBanner from './TagsBanner'
19
20
import ThreadsBanner from './ThreadsBanner'
20
21
import SubscribersBanner from './SubscribersBanner'
@@ -30,13 +31,15 @@ const ChildBanner = ({
30
31
postsTotalCount,
31
32
jobsTotalCount,
32
33
videosTotalCount,
34
+ reposTotalCount,
33
35
tagsTotalCount,
34
36
restProps,
35
37
} ) => {
36
38
const {
37
39
filteredPostsCount,
38
40
filteredJobsCount,
39
41
filteredVideosCount,
42
+ filteredReposCount,
40
43
} = restProps
41
44
42
45
switch ( curRoute . subPath ) {
@@ -64,6 +67,14 @@ const ChildBanner = ({
64
67
/>
65
68
)
66
69
}
70
+ case ROUTE . REPOS :{
71
+ return (
72
+ < ReposBanner
73
+ totalCount = { reposTotalCount }
74
+ filteredCount = { filteredReposCount }
75
+ />
76
+ )
77
+ }
67
78
case ROUTE . SUBSCRIBERS :{
68
79
return < SubscribersBanner totalCount = { 100 } filteredCount = { 10 } />
69
80
}
@@ -97,6 +108,7 @@ class CommunityBannerContainer extends React.Component {
97
108
postsTotalCount,
98
109
jobsTotalCount,
99
110
videosTotalCount,
111
+ reposTotalCount,
100
112
tagsTotalCount,
101
113
} = communityBanner
102
114
@@ -107,6 +119,7 @@ class CommunityBannerContainer extends React.Component {
107
119
postsTotalCount = { postsTotalCount }
108
120
jobsTotalCount = { jobsTotalCount }
109
121
videosTotalCount = { videosTotalCount }
122
+ reposTotalCount = { reposTotalCount }
110
123
tagsTotalCount = { tagsTotalCount }
111
124
restProps = { stripMobx ( communityBanner ) }
112
125
/>