File tree 3 files changed +35
-1
lines changed
shared/components/Contentful/Article
3 files changed +35
-1
lines changed Original file line number Diff line number Diff line change @@ -363,7 +363,7 @@ 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
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 */ }
You can’t perform that action at this time.
0 commit comments