Skip to content

Commit

Permalink
Merge pull request #6333 from topcoder-platform/develop
Browse files Browse the repository at this point in the history
Release v1.15.3
  • Loading branch information
luizrrodrigues authored May 10, 2022
2 parents f7b8420 + 7e01e56 commit 587fc0f
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -363,14 +363,15 @@ workflows:
filters:
branches:
only:
- free
- thrive-discord-button
# This is stage env for production QA releases
- "build-prod-staging":
context : org-global
filters: &filters-staging
branches:
only:
- develop
- stat_marathon_match_link
# Production builds are exectuted
# when PR is merged to the master
# Don't change anything in this configuration
Expand Down
19 changes: 19 additions & 0 deletions src/assets/images/tc-edu/discord-icon-white.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions src/shared/components/Contentful/Article/Article.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,15 @@ import {
import qs from 'qs';
import LoginModal from 'components/LoginModal';
import modalStyle from 'components/LoginModal/modal.scss';
import { PrimaryButton } from 'topcoder-react-ui-kit';
import tc from 'components/buttons/themed/tc.scss';
// SVGs and assets
import GestureIcon from 'assets/images/icon-gesture.svg';
import ReadMoreArrow from 'assets/images/read-more-arrow.svg';
import IconFacebook from 'assets/images/icon-facebook.svg';
import IconTwitter from 'assets/images/icon-twitter.svg';
import IconLinkedIn from 'assets/images/icon-linkedIn.svg';
import DiscordIconWhite from 'assets/images/tc-edu/discord-icon-white.svg';

const htmlToText = require('html-to-text');

Expand Down Expand Up @@ -335,6 +338,18 @@ class Article extends React.Component {
<span>{downvotes}</span>
</div>
</div>
{/* Discord */}
<div className={theme.actionContainer}>
<PrimaryButton
to="https://discord.gg/topcoder?ref=thrive-article"
openNewTab
theme={{
button: tc['primary-green-md'],
}}
>
<DiscordIconWhite style={{ marginRight: '5px' }} /> Chat on Discord
</PrimaryButton>
</div>
</div>
</div>
{/* Recommended */}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ export default class HistoryGraph extends React.Component {
}
if (track === 'DATA_SCIENCE') {
if (subTrack === 'MARATHON_MATCH') {
return `${config.URL.COMMUNITY}/tc?module=MatchDetails&rd=${challengeId}`;
return `${config.URL.CHALLENGES_URL}/${challengeId}`;
}
if (subTrack === 'SRM') {
return `${config.URL.COMMUNITY}/stat?c=round_overview&rd=${challengeId}`;
Expand Down

0 comments on commit 587fc0f

Please sign in to comment.