diff --git a/.circleci/config.yml b/.circleci/config.yml
index dc1b4033dd..b835ac6700 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -244,7 +244,7 @@ workflows:
filters:
branches:
only:
- - free
+ - hide-my-communities
# This is beta env for production soft releases
- "build-prod-beta":
context : org-global
diff --git a/__tests__/shared/components/__snapshots__/TopcoderFooter.jsx.snap b/__tests__/shared/components/__snapshots__/TopcoderFooter.jsx.snap
index 9a982e6e7f..512f201fb3 100644
--- a/__tests__/shared/components/__snapshots__/TopcoderFooter.jsx.snap
+++ b/__tests__/shared/components/__snapshots__/TopcoderFooter.jsx.snap
@@ -601,7 +601,7 @@ exports[`Matches shallow shapshot 1`] = `
- © 2020 Topcoder
+ © 2021 Topcoder
Topcoder ©
- 2020
+ 2021
`;
diff --git a/src/shared/components/Dashboard/CurrentActivity/Header/index.jsx b/src/shared/components/Dashboard/CurrentActivity/Header/index.jsx
index 3b42ee67a5..a5909d417a 100644
--- a/src/shared/components/Dashboard/CurrentActivity/Header/index.jsx
+++ b/src/shared/components/Dashboard/CurrentActivity/Header/index.jsx
@@ -10,7 +10,7 @@ import './style.scss';
export default function Header({
// numChallenges,
- numCommunities,
+ // numCommunities,
switchTab,
tab,
}) {
@@ -22,14 +22,15 @@ export default function Header({
if (numChallenges) myChallengesTitle += ` (${numChallenges})`;
*/
- let myCommunitiesTitle = 'My Communities';
- if (numCommunities) myCommunitiesTitle += ` (${numCommunities})`;
+ // let myCommunitiesTitle = 'My Communities';
+ // if (numCommunities) myCommunitiesTitle += ` (${numCommunities})`;
return (
+
{/* {/* Temporary hide My Active Challenges - community-app#5004
*/}
+ {/* Hide My Communities community-app#5288
);
@@ -54,7 +58,7 @@ export default function Header({
Header.propTypes = {
// numChallenges: PT.number.isRequired,
- numCommunities: PT.number.isRequired,
+ // numCommunities: PT.number.isRequired,
switchTab: PT.func.isRequired,
tab: PT.string.isRequired,
};
diff --git a/src/shared/components/Dashboard/CurrentActivity/index.jsx b/src/shared/components/Dashboard/CurrentActivity/index.jsx
index 68bcb853ad..0beb9f9ca0 100644
--- a/src/shared/components/Dashboard/CurrentActivity/index.jsx
+++ b/src/shared/components/Dashboard/CurrentActivity/index.jsx
@@ -5,16 +5,16 @@ import PT from 'prop-types';
import _ from 'lodash';
import { TABS } from 'actions/page/dashboard';
-import { challenge as challengeUtils } from 'topcoder-react-lib';
+// import { challenge as challengeUtils } from 'topcoder-react-lib';
-import Challenges from './Challenges';
-import Communities from './Communities';
+// import Challenges from './Challenges';
+// import Communities from './Communities';
import Header from './Header';
import Srms from './Srms';
import './styles.scss';
-const Filter = challengeUtils.filter;
+// const Filter = challengeUtils.filter;
/* eslint-disable react/no-unused-state */
@@ -52,27 +52,28 @@ export default class MyChallenges extends React.Component {
render() {
const {
- challengeFilter,
- challenges,
- challengesLoading,
- communities,
- communitiesLoading,
- communityStats,
- selectChallengeDetailsTab,
- setChallengeListingFilter,
- showChallengeFilter,
+ // challengeFilter,
+ // challenges,
+ // challengesLoading,
+ // communities,
+ // communitiesLoading,
+ // communityStats,
+ // selectChallengeDetailsTab,
+ // setChallengeListingFilter,
+ // showChallengeFilter,
srms,
srmsLoading,
- switchChallengeFilter,
- switchShowChallengeFilter,
+ // switchChallengeFilter,
+ // switchShowChallengeFilter,
switchTab,
tab,
- unregisterFromChallenge,
- userGroups,
- userResources,
- challengeTypesMap,
+ // unregisterFromChallenge,
+ // userGroups,
+ // userResources,
+ // challengeTypesMap,
} = this.props;
+ /* Hide My Communities community-app#5288
const myCommunities = communities.filter(x => _.intersection(userGroups, x.groupIds).length)
.map((community) => {
const filter = Filter.getFilterFunction(community.challengeFilter);
@@ -80,16 +81,17 @@ export default class MyChallenges extends React.Component {
res.number = challenges.filter(x => filter(x)).length;
return res;
});
+ */
return (
- {
+ { /*
tab === TABS.MY_ACTIVE_CHALLENGES ? (
) : null
- }
- {
+ */}
+ {/* Hide My Communities community-app#5288
tab === TABS.COMMUNITIES ? (
) : null
- }
+ */}
{
tab === TABS.SRMS ? (