@@ -6,7 +6,7 @@ import PropTypes from 'prop-types'
6
6
import Sticky from 'react-stickynode'
7
7
import { Helmet } from 'react-helmet'
8
8
import { Link } from 'react-router-dom'
9
- import { CONNECT_APP_URL } from '../../config/constants'
9
+ import { CONNECT_APP_URL , DIRECT_PROJECT_URL } from '../../config/constants'
10
10
11
11
import { PrimaryButton } from '../Buttons'
12
12
import ChallengeList from './ChallengeList'
@@ -32,17 +32,26 @@ const ChallengesComponent = ({
32
32
< div >
33
33
< Helmet title = { activeProject ? activeProject . name : '' } />
34
34
< div className = { styles . titleContainer } >
35
- { ( activeProject && activeProject . id ) ? (
36
- < a
37
- className = { styles . buttonLaunchNew }
38
- href = { `${ CONNECT_APP_URL } /projects/${ activeProject . id } ` }
39
- target = { '_blank' }
40
- >
41
- < PrimaryButton text = { 'View Project in Connect' } type = { 'info' } />
42
- </ a >
43
- ) : (
44
- < span />
45
- ) }
35
+ < div className = { styles . titleLinks } >
36
+ { activeProject && activeProject . id && (
37
+ < a
38
+ className = { styles . buttonLaunchNew }
39
+ href = { `${ CONNECT_APP_URL } /projects/${ activeProject . id } ` }
40
+ target = { '_blank' }
41
+ >
42
+ < PrimaryButton text = { 'View Project in Connect' } type = { 'info' } />
43
+ </ a >
44
+ ) }
45
+ { activeProject && activeProject . directProjectId && (
46
+ < a
47
+ className = { styles . buttonLaunchNew }
48
+ href = { `${ DIRECT_PROJECT_URL } /projectOverview?formData.projectId=${ activeProject . directProjectId } ` }
49
+ target = { '_blank' }
50
+ >
51
+ < PrimaryButton text = { 'View Project in Direct' } type = { 'info' } />
52
+ </ a >
53
+ ) }
54
+ </ div >
46
55
< div
47
56
className = { styles . title }
48
57
dangerouslySetInnerHTML = { {
0 commit comments