File tree Expand file tree Collapse file tree 4 files changed +9
-4
lines changed
src/shared/components/ProfilePage/Awards Expand file tree Collapse file tree 4 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 153
153
"supertest" : " ^3.1.0" ,
154
154
"tc-core-library-js" : " github:appirio-tech/tc-core-library-js#v2.6.3" ,
155
155
"tc-ui" : " ^1.0.12" ,
156
- "topcoder-react-lib" : " 1000.29.2 " ,
156
+ "topcoder-react-lib" : " 1.2.9 " ,
157
157
"topcoder-react-ui-kit" : " 2.0.1" ,
158
158
"topcoder-react-utils" : " 0.7.8" ,
159
159
"turndown" : " ^4.0.2" ,
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ const AwatarModal = ({
26
26
< span > { title } </ span >
27
27
</ div >
28
28
29
- < div styleName = "description" dangerouslySetInnerHTML = { { __html : description } } / >
29
+ < div styleName = "description" > { description } </ div >
30
30
31
31
</ div >
32
32
</ div >
Original file line number Diff line number Diff line change 1
1
@import " ~styles/mixins" ;
2
+ @import " ~components/Contentful/brackets" ;
2
3
3
4
.awardModal {
4
5
display : flex ;
40
41
}
41
42
42
43
.description {
43
- @include roboto-regular ;
44
+ @include brackets-content ;
44
45
45
46
font-weight : 400 ;
46
47
color : $tco-black ;
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import PT from 'prop-types';
3
3
import { Modal } from 'topcoder-react-ui-kit' ;
4
4
import IconClose from 'assets/images/tc-edu/icon-close-big.svg' ;
5
5
import _ from 'lodash' ;
6
+ import md from 'utils/markdown' ;
6
7
7
8
import style from './styles.scss' ;
8
9
import AwardBadge from './AwardBadge' ;
@@ -23,8 +24,11 @@ const Awards = ({ badges }) => {
23
24
{
24
25
badges . map ( ( reward ) => {
25
26
const title = _ . get ( reward , 'org_badge.badge_name' ) ;
26
- const description = _ . get ( reward , 'org_badge.badge_description' ) ;
27
27
const imageUrl = _ . get ( reward , 'org_badge.badge_image_url' ) ;
28
+ let description = _ . get ( reward , 'org_badge.badge_description' ) ;
29
+ if ( description ) {
30
+ description = md ( description ) ;
31
+ }
28
32
29
33
return (
30
34
< AwardBadge
You can’t perform that action at this time.
0 commit comments