Skip to content

Commit 7da9e13

Browse files
authored
Merge pull request #6733 from topcoder-platform/timeline-wall-api-issues-25
fix: forums link
2 parents ac52559 + b233a0b commit 7da9e13

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

config/default.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -468,5 +468,6 @@ module.exports = {
468468
REJECTION_EVENT_REASONS: ['Duplicate Event', 'Violates the Topcoder terms', 'Inaccurate or Invalid'],
469469
ALLOWED_FILETYPES: ['image/jpeg', 'image/png', 'video/mp4', 'video/x-msvideo', 'video/webm'],
470470
FETCHING_PENDING_APPROVAL_EVENTS_INTERVAL: 5 * 60 * 1000, // 5 minutes
471+
FORUM_LINK: 'https://discussions.topcoder.com/discussion/24281/add-your-memory-to-the-topcoder-timeline-wall',
471472
},
472473
};

src/shared/containers/timeline-wall/index.jsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import './styles.scss';
2222

2323

2424
const FETCHING_PENDING_APPROVAL_EVENTS_INTERVAL = _.get(config, 'TIMELINE.FETCHING_PENDING_APPROVAL_EVENTS_INTERVAL', 0);
25+
const FORUM_LINK = _.get(config, 'TIMELINE.FORUM_LINK', '');
2526
function TimelineWallContainer(props) {
2627
const [tab, setTab] = useState(0);
2728
const fetchingApprovalsInterval = useRef(null);
@@ -205,13 +206,14 @@ function TimelineWallContainer(props) {
205206
) : (<h1 styleName="header-content-1">Topcoder Timeline Wall</h1>)}
206207

207208
{shouldShowDiscuss ? (
208-
<button
209+
<a
209210
type="button"
210211
styleName="btn-discuss"
212+
href={FORUM_LINK}
211213
>
212214
<span>DISCUSS</span>
213215
<IconArrowRight />
214-
</button>
216+
</a>
215217
) : null}
216218

217219
<button

src/shared/containers/timeline-wall/styles.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@
8686
border: none;
8787
color: white;
8888

89+
&:hover {
90+
color: white;
91+
}
92+
8993
@media (max-width: 1500px) {
9094
left: unset;
9195
right: 0;

0 commit comments

Comments
 (0)