Skip to content

Commit 41bb56a

Browse files
Merge pull request #6326 from topcoder-platform/thrive-discord-button
Thrive discord button
2 parents be0d4b5 + 20a9e8e commit 41bb56a

File tree

3 files changed

+35
-1
lines changed

3 files changed

+35
-1
lines changed

.circleci/config.yml

+1-1
Original file line numberDiff line numberDiff 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
Loading

src/shared/components/Contentful/Article/Article.jsx

+15
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,15 @@ import {
2525
import qs from 'qs';
2626
import LoginModal from 'components/LoginModal';
2727
import 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
2931
import GestureIcon from 'assets/images/icon-gesture.svg';
3032
import ReadMoreArrow from 'assets/images/read-more-arrow.svg';
3133
import IconFacebook from 'assets/images/icon-facebook.svg';
3234
import IconTwitter from 'assets/images/icon-twitter.svg';
3335
import IconLinkedIn from 'assets/images/icon-linkedIn.svg';
36+
import DiscordIconWhite from 'assets/images/tc-edu/discord-icon-white.svg';
3437

3538
const 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 */}

0 commit comments

Comments
 (0)