File tree Expand file tree Collapse file tree 3 files changed +35
-1
lines changed
shared/components/Contentful/Article Expand file tree Collapse file tree 3 files changed +35
-1
lines changed Original file line number Diff line number Diff line change @@ -363,7 +363,7 @@ workflows:
363363 filters :
364364 branches :
365365 only :
366- - free
366+ - thrive-discord-button
367367 # This is stage env for production QA releases
368368 - " build-prod-staging " :
369369 context : org-global
Original file line number Diff line number Diff line change @@ -25,12 +25,15 @@ import {
2525import qs from 'qs' ;
2626import LoginModal from 'components/LoginModal' ;
2727import modalStyle from 'components/LoginModal/modal.scss' ;
28+ import { PrimaryButton } from 'topcoder-react-ui-kit' ;
29+ import tc from 'components/buttons/themed/tc.scss' ;
2830// SVGs and assets
2931import GestureIcon from 'assets/images/icon-gesture.svg' ;
3032import ReadMoreArrow from 'assets/images/read-more-arrow.svg' ;
3133import IconFacebook from 'assets/images/icon-facebook.svg' ;
3234import IconTwitter from 'assets/images/icon-twitter.svg' ;
3335import IconLinkedIn from 'assets/images/icon-linkedIn.svg' ;
36+ import DiscordIconWhite from 'assets/images/tc-edu/discord-icon-white.svg' ;
3437
3538const htmlToText = require ( 'html-to-text' ) ;
3639
@@ -335,6 +338,18 @@ class Article extends React.Component {
335338 < span > { downvotes } </ span >
336339 </ div >
337340 </ 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 >
338353 </ div >
339354 </ div >
340355 { /* Recommended */ }
You can’t perform that action at this time.
0 commit comments