File tree 3 files changed +34
-14
lines changed
src/shared/components/Settings/Profile/Skills
3 files changed +34
-14
lines changed Original file line number Diff line number Diff line change @@ -175,6 +175,7 @@ workflows:
175
175
branches :
176
176
only :
177
177
- develop-from-master-23may
178
+ - hot-fixes-4
178
179
# This is alternate dev env for parallel testing
179
180
- " build-test " :
180
181
context : org-global
@@ -189,7 +190,6 @@ workflows:
189
190
filters :
190
191
branches :
191
192
only :
192
- - hot-fixes-2
193
193
- develop
194
194
- general-features
195
195
- develop-from-master-23may
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ import ConsentComponent from 'components/Settings/ConsentComponent';
20
20
import DevFallbackIcon from 'assets/images/profile/skills/id-develop.svg' ;
21
21
import DesignFallbackIcon from 'assets/images/profile/skills/id-design.svg' ;
22
22
import DataFallbackIcon from 'assets/images/profile/skills/id-data.svg' ;
23
+ import VerifiedBadgeIcon from 'assets/images/verified-skill-badge.svg' ;
23
24
import { isomorphy } from 'topcoder-react-utils' ;
24
25
25
26
import './styles.scss' ;
@@ -303,6 +304,7 @@ export default class Skills extends ConsentComponent {
303
304
skill . id === arraySkill [ i ] . tagId
304
305
) ) ;
305
306
if ( result && result . length > 0 ) {
307
+ result [ 0 ] . sources = arraySkill [ i ] . sources ;
306
308
filterUserSkills . push ( result [ 0 ] ) ;
307
309
if ( _ . some ( result [ 0 ] . categories , category => category . toLowerCase ( ) === 'design' ) ) {
308
310
design . push ( result [ 0 ] . name ) ;
@@ -505,10 +507,13 @@ export default class Skills extends ConsentComponent {
505
507
< div styleName = "hidden-indicator" />
506
508
{ imageExist ( `id-${ skill . id } .svg` ) ? getImage ( `id-${ skill . id } .svg` ) : < FallbackIcon /> }
507
509
</ div >
510
+ </ a >
511
+ < div styleName = "name-wrapper" >
508
512
< div styleName = "name" >
509
513
{ _ . truncate ( skill . name , { length : 18 , separator : ' ' } ) }
510
514
</ div >
511
- </ a >
515
+ { _ . includes ( skill . sources , 'CHALLENGE' ) && < div styleName = "verified-badge" > < VerifiedBadgeIcon /> </ div > }
516
+ </ div >
512
517
</ div >
513
518
</ li >
514
519
) ;
Original file line number Diff line number Diff line change 228
228
}
229
229
230
230
li {
231
- margin : 0 10px 55 px ;
231
+ margin : 0 10px 10 px ;
232
232
border-radius : 6px ;
233
233
234
234
@include xs-to-lg {
261
261
text-decoration : none ;
262
262
}
263
263
264
+ .name-wrapper {
265
+ position : relative ;
266
+ display : flex ;
267
+ flex-direction : row ;
268
+ justify-content : center ;
269
+ align-items : center ;
270
+ width : 75px ;
271
+ padding-top : 5px ;
272
+ padding-bottom : 10px ;
273
+ flex-shrink : 0 ;
274
+
275
+ .name {
276
+ @include roboto-regular ;
277
+
278
+ font-size : 12px ;
279
+ line-height : 15px ;
280
+ color : #262628 ;
281
+ text-align : center ;
282
+ }
283
+
284
+ .verified-badge {
285
+ padding-left : 5px ;
286
+ font-size : 0 ;
287
+ }
288
+ }
289
+
264
290
.skill-icon {
265
291
position : relative ;
266
292
display : flex ;
317
343
}
318
344
}
319
345
320
- .name {
321
- @include roboto-regular ;
322
-
323
- margin-top : 10px ;
324
- font-size : 12px ;
325
- line-height : 15px ;
326
- color : #262628 ;
327
- text-align : center ;
328
- width : 100% ;
329
- }
330
-
331
346
a .skill-hidden {
332
347
img {
333
348
opacity : 0.3 ;
You can’t perform that action at this time.
0 commit comments