File tree Expand file tree Collapse file tree 4 files changed +11
-7
lines changed
__tests__/shared/components/challenge-detail/Submissions/SubmissionRow/SubmissionHistoryRow/__snapshots__
containers/challenge-detail Expand file tree Collapse file tree 4 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ exports[`Matches shallow shapshot shapshot 1 1`] = `
54
54
<div >
55
55
06 Nov 2017
56
56
57
- 15 :49:35
57
+ 22 :49:35
58
58
</div >
59
59
</div >
60
60
<div
Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ import { isMM } from 'utils/challenge';
12
12
13
13
import PT from 'prop-types' ;
14
14
import React from 'react' ;
15
- import { useMediaQuery } from 'react-responsive' ;
16
15
import { PrimaryButton } from 'topcoder-react-ui-kit' ;
17
16
import { Link } from 'topcoder-react-utils' ;
18
17
import { COMPETITION_TRACKS } from 'utils/tc' ;
@@ -81,9 +80,7 @@ export default function ChallengeHeader(props) {
81
80
type,
82
81
track,
83
82
} = challenge ;
84
-
85
- const desktop = useMediaQuery ( { minWidth : 1024 } ) ;
86
- const showDeadlineDetail = desktop || showDeadlineDetailProp ;
83
+ const showDeadlineDetail = showDeadlineDetailProp ;
87
84
88
85
const tags = challenge . tags || [ ] ;
89
86
@@ -172,6 +169,12 @@ export default function ChallengeHeader(props) {
172
169
const end = phaseEndDate ( phase ) ;
173
170
return moment ( end ) . isAfter ( ) ;
174
171
}
172
+ // do not show [Specification Submission, Specification Review, Approval]
173
+ // phases for design challenges
174
+ if ( trackLower === 'design'
175
+ && [ 'Specification Submission' , 'Specification Review' , 'Approval' ] . indexOf ( phase . name ) >= 0 ) {
176
+ return false ;
177
+ }
175
178
return true ;
176
179
} ) ;
177
180
Original file line number Diff line number Diff line change 644
644
height : 60px ;
645
645
border-bottom-left-radius : 8px ;
646
646
border-bottom-right-radius : 8px ;
647
+ display : flex ;
648
+ padding-right : 16px ;
647
649
648
650
& .opened {
649
651
border-radius : 0 !important ;
650
652
}
651
653
652
654
@include xs-to-md {
653
- display : flex ;
654
655
padding : 0 16px ;
655
656
}
656
657
Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ class ChallengeDetailPageContainer extends React.Component {
155
155
this . apiService = getService ( { spaceName : 'EDU' } ) ;
156
156
this . state = {
157
157
thriveArticles : [ ] ,
158
- showDeadlineDetail : true ,
158
+ showDeadlineDetail : false ,
159
159
registrantsSort : {
160
160
field : '' ,
161
161
sort : '' ,
You can’t perform that action at this time.
0 commit comments