File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed
challenge-listing/ChallengeCard Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 4
4
5
5
import PT from 'prop-types' ;
6
6
import React from 'react' ;
7
-
7
+ import { Link } from 'utils/router' ;
8
8
import './style.scss' ;
9
9
10
10
export default function Item ( {
@@ -17,10 +17,10 @@ export default function Item({
17
17
if ( currentSubMenuTitle === title ) styleName += ' current' ;
18
18
return (
19
19
< li styleName = { styleName } >
20
- < a href = { link } >
20
+ < Link to = { link } >
21
21
{ icon }
22
22
{ title }
23
- </ a >
23
+ </ Link >
24
24
</ li >
25
25
) ;
26
26
}
Original file line number Diff line number Diff line change 1
1
import _ from 'lodash' ;
2
2
import config from 'utils/config' ;
3
+ import { Link } from 'utils/router' ;
3
4
import moment from 'moment' ;
4
5
import React from 'react' ;
5
6
import PT from 'prop-types' ;
@@ -124,11 +125,11 @@ function ChallengeCard({
124
125
</ div >
125
126
126
127
< div styleName = { isRegistrationOpen ? 'challenge-details with-register-button' : 'challenge-details' } >
127
- < a
128
- href = { challengeDetailLink }
128
+ < Link
129
+ to = { challengeDetailLink }
129
130
styleName = "challenge-title"
130
- target = { openChallengesInNewTabs ? '_blank' : undefined }
131
- > { challenge . name } </ a >
131
+ openNewTab = { openChallengesInNewTabs }
132
+ > { challenge . name } </ Link >
132
133
< div styleName = "details-footer" >
133
134
< span styleName = "date" >
134
135
{ challenge . status === 'ACTIVE' ? 'Ends ' : 'Ended ' }
You can’t perform that action at this time.
0 commit comments