File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -9,13 +9,18 @@ import Option from './Option';
9
9
import './style.scss' ;
10
10
11
11
export default function Header ( {
12
- numChallenges,
12
+ // numChallenges,
13
13
numCommunities,
14
14
switchTab,
15
15
tab,
16
16
} ) {
17
+ /**
18
+ * Temporary hide My Active Challenges - community-app#5004
19
+ */
20
+ /*
17
21
let myChallengesTitle = 'My Active Challenges';
18
22
if (numChallenges) myChallengesTitle += ` (${numChallenges})`;
23
+ */
19
24
20
25
let myCommunitiesTitle = 'My Communities' ;
21
26
if ( numCommunities ) myCommunitiesTitle += ` (${ numCommunities } )` ;
@@ -25,11 +30,13 @@ export default function Header({
25
30
< Carousel
26
31
alignItems = "start"
27
32
>
33
+ { /* {/* Temporary hide My Active Challenges - community-app#5004
28
34
<Option
29
35
selected={tab === TABS.MY_ACTIVE_CHALLENGES}
30
36
select={() => switchTab(TABS.MY_ACTIVE_CHALLENGES)}
31
37
title={myChallengesTitle}
32
38
/>
39
+ */ }
33
40
< Option
34
41
selected = { tab === TABS . COMMUNITIES }
35
42
select = { ( ) => switchTab ( TABS . COMMUNITIES ) }
@@ -46,7 +53,7 @@ export default function Header({
46
53
}
47
54
48
55
Header . propTypes = {
49
- numChallenges : PT . number . isRequired ,
56
+ // numChallenges: PT.number.isRequired,
50
57
numCommunities : PT . number . isRequired ,
51
58
switchTab : PT . func . isRequired ,
52
59
tab : PT . string . isRequired ,
Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ function create(state = {}) {
93
93
[ a . switchTab ] : onSwitchTab ,
94
94
} , _ . defaults ( state , {
95
95
challengeFilter : '' ,
96
- tab : TABS . MY_ACTIVE_CHALLENGES ,
96
+ tab : TABS . COMMUNITIES , // Temporary hide MY ACTIVE CHALLENGES - community-app#5004
97
97
showAnnouncement : true ,
98
98
showChallengeFilter : false ,
99
99
xlBadge : '' ,
You can’t perform that action at this time.
0 commit comments