Skip to content

Commit b49d3eb

Browse files
Merge pull request #1617 from topcoder-platform/PM-903
PM-903 Add project link to challenge view
2 parents 713ade8 + acac808 commit b49d3eb

File tree

1 file changed

+5
-2
lines changed
  • src/components/ChallengeEditor/ChallengeView

1 file changed

+5
-2
lines changed

src/components/ChallengeEditor/ChallengeView/index.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React, { useState, useEffect } from 'react'
22
import _ from 'lodash'
33
import PropTypes from 'prop-types'
44
import cn from 'classnames'
5-
import { withRouter } from 'react-router-dom'
5+
import { withRouter, Link } from 'react-router-dom'
66
import styles from './ChallengeView.module.scss'
77
import Track from '../../Track'
88
import NDAField from '../NDAField'
@@ -112,7 +112,10 @@ const ChallengeView = ({
112112
<div className={cn(styles.row, styles.topRow)}>
113113
<div className={styles.col}>
114114
<span>
115-
<span className={styles.fieldTitle}>Project: {projectDetail ? projectDetail.name : ''}</span>
115+
<span className={styles.fieldTitle}>Project: <Link to={`/projects/${projectDetail.id}/challenges`}>
116+
{projectDetail ? projectDetail.name : ''}
117+
</Link>
118+
</span>
116119
</span>
117120
</div>
118121
{selectedMilestone &&

0 commit comments

Comments
 (0)