File tree 4 files changed +28
-5
lines changed
src/shared/components/ProfilePage
4 files changed +28
-5
lines changed Original file line number Diff line number Diff line change @@ -175,7 +175,6 @@ workflows:
175
175
branches :
176
176
only :
177
177
- develop
178
- - hot-fix-profile-issue
179
178
# This is alternate dev env for parallel testing
180
179
- " build-test " :
181
180
context : org-global
@@ -192,7 +191,6 @@ workflows:
192
191
branches :
193
192
only :
194
193
- develop
195
- - hotfix-legacy-mm
196
194
# Production builds are exectuted
197
195
# when PR is merged to the master
198
196
# Don't change anything in this configuration
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import { noop, get } from 'lodash';
7
7
import moment from 'moment' ;
8
8
import ReactSVG from 'react-svg' ;
9
9
10
- import { getRatingColor } from 'utils/tc' ;
10
+ import { getRatingLevel } from 'utils/tc' ;
11
11
import { config , isomorphy } from 'topcoder-react-utils' ;
12
12
13
13
import CopilotIcon from 'assets/images/profile/ico-track-copilot.svg' ;
@@ -63,7 +63,7 @@ class ProfileHeader extends React.Component {
63
63
{ imageUrl ? < img src = { imageUrl } onError = { this . loadImageError } styleName = "profile-circle" alt = "Member Portait" /> : < ReactSVG path = { assets ( './ico-user-default.svg' ) } /> }
64
64
</ div >
65
65
< div styleName = "info" >
66
- < h1 style = { { color : getRatingColor ( get ( info , 'maxRating.rating' , 0 ) ) } } styleName = "handle" >
66
+ < h1 styleName = { `handle level- ${ getRatingLevel ( get ( info , 'maxRating.rating' , 0 ) ) } ` } >
67
67
{ info . handle }
68
68
</ h1 >
69
69
< h3 styleName = "location-challenges" >
Original file line number Diff line number Diff line change 39
39
line-height : 34px ;
40
40
41
41
@include sofia-pro-medium ;
42
+
43
+ & .level-1 {
44
+ color : $tc-level-1 ;
45
+ }
46
+
47
+ & .level-2 {
48
+ color : $tc-level-2 ;
49
+ }
50
+
51
+ & .level-3 {
52
+ color : $tc-level-3 ;
53
+ }
54
+
55
+ & .level-4 {
56
+ color : $tc-level-4 ;
57
+ }
58
+
59
+ & .level-5 {
60
+ color : $tc-level-5 ;
61
+ }
42
62
}
43
63
44
64
h3 .tenure {
Original file line number Diff line number Diff line change @@ -119,7 +119,6 @@ class ProfilePage extends React.Component {
119
119
copilot,
120
120
externalAccounts,
121
121
externalLinks,
122
- info,
123
122
skills : propSkills ,
124
123
stats,
125
124
lookupData,
@@ -131,6 +130,12 @@ class ProfilePage extends React.Component {
131
130
skillsExpanded,
132
131
} = this . state ;
133
132
133
+ let { info } = this . props ;
134
+
135
+ if ( _ . isNull ( _ . get ( info , 'maxRating.rating' , 0 ) ) && ! _ . isEmpty ( stats ) ) {
136
+ info = _ . assign ( info , { maxRating : stats [ 0 ] . maxRating } ) ;
137
+ }
138
+
134
139
// get country
135
140
let country = '' ;
136
141
if ( _ . has ( lookupData , 'countries' ) && lookupData . countries . length > 0 ) {
You can’t perform that action at this time.
0 commit comments