File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed
src/shared/components/ProfilePage Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -116,5 +116,6 @@ module.exports = {
116
116
GOOGLE_SERVICE_ACCOUNT_PRIVATE_KEY : 'GOOGLE_SERVICE_ACCOUNT_PRIVATE_KEY' ,
117
117
GAMIFICATION : {
118
118
ORG_ID : 'GAMIFICATION_ORG_ID' ,
119
+ ENABLE_BADGE_UI : 'GAMIFICATION_ENABLE_BADGE_UI' ,
119
120
} ,
120
121
} ;
Original file line number Diff line number Diff line change @@ -454,5 +454,6 @@ module.exports = {
454
454
PLATFORM_SITE_URL : 'https://platform.topcoder-dev.com' ,
455
455
GAMIFICATION : {
456
456
ORG_ID : '6052dd9b-ea80-494b-b258-edd1331e27a3' ,
457
+ ENABLE_BADGE_UI : true ,
457
458
} ,
458
459
} ;
Original file line number Diff line number Diff line change 6
6
import _ from 'lodash' ;
7
7
import React from 'react' ;
8
8
import PT from 'prop-types' ;
9
- import { isomorphy } from 'topcoder-react-utils' ;
9
+ import { isomorphy , config } from 'topcoder-react-utils' ;
10
10
11
11
import { dataMap } from './ExternalLink' ;
12
12
import Header from './Header' ;
@@ -199,7 +199,7 @@ class ProfilePage extends React.Component {
199
199
</ div >
200
200
</ div >
201
201
{
202
- ( badges && ( badges . rows || [ ] ) ) . length ? (
202
+ ( config . GAMIFICATION . ENABLE_BADGE_UI && badges && ( badges . rows || [ ] ) ) . length ? (
203
203
< Awards badges = { badges . rows } />
204
204
) : null
205
205
}
You can’t perform that action at this time.
0 commit comments