Skip to content

Commit 7e21468

Browse files
committed
tweaks for /tc
1 parent 55cf571 commit 7e21468

File tree

5 files changed

+18
-13
lines changed

5 files changed

+18
-13
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ workflows:
356356
filters:
357357
branches:
358358
only:
359-
- slash-tc
359+
- free
360360
# This is beta env for production soft releases
361361
- "build-prod-beta":
362362
context : org-global

src/shared/components/Contentful/MemberTalkCloud/MemberTalkCloud.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export class MemberTalkCloud extends React.Component {
8080
}}
8181
>
8282
<img
83-
alt={item.text}
83+
alt={item.handle}
8484
src={item.smallImageURL}
8585
onClick={() => this.onSelect(index + 1)}
8686
/>
@@ -90,7 +90,7 @@ export class MemberTalkCloud extends React.Component {
9090
</div>
9191
<div className={`${entry} ${active}`}>
9292
<img
93-
alt={activeBlob.text}
93+
alt={activeBlob.handle}
9494
src={activeBlob.imageURL}
9595
key={Math.random()}
9696
/>
@@ -110,7 +110,7 @@ export class MemberTalkCloud extends React.Component {
110110
}}
111111
>
112112
<img
113-
alt={item.text}
113+
alt={item.handle}
114114
src={item.smallImageURL}
115115
onClick={() => this.onSelect(index + ITEMS_ON_LEFT_SIDE + 1)}
116116
/>

src/shared/components/Dashboard/Challenges/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export default function ChallengesFeed({
3838
<div styleName="prize">
3939
<span styleName="amount">
4040
{`$${_.sum(challenge.prizeSets
41-
.map(item => _.sum(item.prizes.map(prize => prize.value))))}`}
41+
.map(item => _.sum(item.prizes.map(prize => prize.value)))).toLocaleString()}`}
4242
</span>
4343
</div>
4444
</div>

src/shared/containers/Dashboard/NewsFeed/index.jsx

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,19 +48,24 @@ function NewsFeedContainer() {
4848
>
4949
{
5050
newsData.map((item) => {
51+
const opt = {
52+
ignoreHref: true,
53+
ignoreImage: true,
54+
singleNewLineParagraphs: true,
55+
uppercaseHeadings: false,
56+
};
5157
const cont = htmlToText.fromString(
5258
item.body,
53-
{
54-
ignoreHref: true,
55-
ignoreImage: true,
56-
singleNewLineParagraphs: true,
57-
uppercaseHeadings: false,
58-
},
59+
opt,
60+
);
61+
const title = htmlToText.fromString(
62+
item.name,
63+
opt,
5964
);
6065
return (
6166
<div className="newsItem" key={item.discussionID}>
6267
<div className="date">{moment(item.dateInserted).format('MMM D, YYYY')}</div>
63-
<a className="title" target="_blank" rel="noreferrer" href={item.url}>{item.name}</a>
68+
<a className="title" target="_blank" rel="noreferrer" href={item.url}>{title}</a>
6469
<div className="cont">
6570
{
6671
cont.length > MAX_NEWS_TEXT_LEN ? (

src/shared/containers/Dashboard/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const THEMES = {
2727
function SlashTCContainer(props) {
2828
const theme = THEMES.dark; // for v1 only dark theme
2929
const isTabletOrMobile = useMediaQuery({ maxWidth: 768 });
30-
const title = 'Dashboard | Topcoder';
30+
const title = 'Home | Topcoder';
3131
return (
3232
<div className={theme.container}>
3333
<MetaTags

0 commit comments

Comments
 (0)