Skip to content

PM-903 Add project link to challenge view #1617

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 12, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/components/ChallengeEditor/ChallengeView/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { useState, useEffect } from 'react'
import _ from 'lodash'
import PropTypes from 'prop-types'
import cn from 'classnames'
import { withRouter } from 'react-router-dom'
import { withRouter, Link } from 'react-router-dom'
import styles from './ChallengeView.module.scss'
import Track from '../../Track'
import NDAField from '../NDAField'
Expand Down Expand Up @@ -112,7 +112,10 @@ const ChallengeView = ({
<div className={cn(styles.row, styles.topRow)}>
<div className={styles.col}>
<span>
<span className={styles.fieldTitle}>Project: {projectDetail ? projectDetail.name : ''}</span>
<span className={styles.fieldTitle}>Project: <Link to={`/projects/${projectDetail.id}/challenges`}>
{projectDetail ? projectDetail.name : ''}
</Link>
</span>
</span>
</div>
{selectedMilestone &&
Expand Down