@@ -15,6 +15,7 @@ import * as logic from './logic'
1515import PostsBanner from './PostsBanner'
1616import JobsBanner from './JobsBanner'
1717import VideosBanner from './VideosBanner'
18+ import ReposBanner from './ReposBanner'
1819import TagsBanner from './TagsBanner'
1920import ThreadsBanner from './ThreadsBanner'
2021import SubscribersBanner from './SubscribersBanner'
@@ -30,13 +31,15 @@ const ChildBanner = ({
3031 postsTotalCount,
3132 jobsTotalCount,
3233 videosTotalCount,
34+ reposTotalCount,
3335 tagsTotalCount,
3436 restProps,
3537} ) => {
3638 const {
3739 filteredPostsCount,
3840 filteredJobsCount,
3941 filteredVideosCount,
42+ filteredReposCount,
4043 } = restProps
4144
4245 switch ( curRoute . subPath ) {
@@ -64,6 +67,14 @@ const ChildBanner = ({
6467 />
6568 )
6669 }
70+ case ROUTE . REPOS : {
71+ return (
72+ < ReposBanner
73+ totalCount = { reposTotalCount }
74+ filteredCount = { filteredReposCount }
75+ />
76+ )
77+ }
6778 case ROUTE . SUBSCRIBERS : {
6879 return < SubscribersBanner totalCount = { 100 } filteredCount = { 10 } />
6980 }
@@ -97,6 +108,7 @@ class CommunityBannerContainer extends React.Component {
97108 postsTotalCount,
98109 jobsTotalCount,
99110 videosTotalCount,
111+ reposTotalCount,
100112 tagsTotalCount,
101113 } = communityBanner
102114
@@ -107,6 +119,7 @@ class CommunityBannerContainer extends React.Component {
107119 postsTotalCount = { postsTotalCount }
108120 jobsTotalCount = { jobsTotalCount }
109121 videosTotalCount = { videosTotalCount }
122+ reposTotalCount = { reposTotalCount }
110123 tagsTotalCount = { tagsTotalCount }
111124 restProps = { stripMobx ( communityBanner ) }
112125 />
0 commit comments