File tree 4 files changed +37
-2
lines changed
ProfilePage/Stats/HistoryGraph
4 files changed +37
-2
lines changed Original file line number Diff line number Diff line change @@ -363,14 +363,15 @@ workflows:
363
363
filters :
364
364
branches :
365
365
only :
366
- - free
366
+ - thrive-discord-button
367
367
# This is stage env for production QA releases
368
368
- " build-prod-staging " :
369
369
context : org-global
370
370
filters : &filters-staging
371
371
branches :
372
372
only :
373
373
- develop
374
+ - stat_marathon_match_link
374
375
# Production builds are exectuted
375
376
# when PR is merged to the master
376
377
# Don't change anything in this configuration
Original file line number Diff line number Diff line change @@ -25,12 +25,15 @@ import {
25
25
import qs from 'qs' ;
26
26
import LoginModal from 'components/LoginModal' ;
27
27
import modalStyle from 'components/LoginModal/modal.scss' ;
28
+ import { PrimaryButton } from 'topcoder-react-ui-kit' ;
29
+ import tc from 'components/buttons/themed/tc.scss' ;
28
30
// SVGs and assets
29
31
import GestureIcon from 'assets/images/icon-gesture.svg' ;
30
32
import ReadMoreArrow from 'assets/images/read-more-arrow.svg' ;
31
33
import IconFacebook from 'assets/images/icon-facebook.svg' ;
32
34
import IconTwitter from 'assets/images/icon-twitter.svg' ;
33
35
import IconLinkedIn from 'assets/images/icon-linkedIn.svg' ;
36
+ import DiscordIconWhite from 'assets/images/tc-edu/discord-icon-white.svg' ;
34
37
35
38
const htmlToText = require ( 'html-to-text' ) ;
36
39
@@ -335,6 +338,18 @@ class Article extends React.Component {
335
338
< span > { downvotes } </ span >
336
339
</ div >
337
340
</ div >
341
+ { /* Discord */ }
342
+ < div className = { theme . actionContainer } >
343
+ < PrimaryButton
344
+ to = "https://discord.gg/topcoder?ref=thrive-article"
345
+ openNewTab
346
+ theme = { {
347
+ button : tc [ 'primary-green-md' ] ,
348
+ } }
349
+ >
350
+ < DiscordIconWhite style = { { marginRight : '5px' } } /> Chat on Discord
351
+ </ PrimaryButton >
352
+ </ div >
338
353
</ div >
339
354
</ div >
340
355
{ /* Recommended */ }
Original file line number Diff line number Diff line change @@ -212,7 +212,7 @@ export default class HistoryGraph extends React.Component {
212
212
}
213
213
if ( track === 'DATA_SCIENCE' ) {
214
214
if ( subTrack === 'MARATHON_MATCH' ) {
215
- return `${ config . URL . COMMUNITY } /tc?module=MatchDetails&rd= ${ challengeId } ` ;
215
+ return `${ config . URL . CHALLENGES_URL } / ${ challengeId } ` ;
216
216
}
217
217
if ( subTrack === 'SRM' ) {
218
218
return `${ config . URL . COMMUNITY } /stat?c=round_overview&rd=${ challengeId } ` ;
You can’t perform that action at this time.
0 commit comments