File tree Expand file tree Collapse file tree 6 files changed +12
-5
lines changed
Leaderboard/ChallengeHistoryModal
containers/tco/Leaderboard Expand file tree Collapse file tree 6 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -363,7 +363,7 @@ workflows:
363
363
filters :
364
364
branches :
365
365
only :
366
- - free
366
+ - tco21-leaderboard-fix
367
367
# This is stage env for production QA releases
368
368
- " build-prod-staging " :
369
369
context : org-global
Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ ContentSlider.defaultProps = {
101
101
cellSpacing : null ,
102
102
cellAlign : 'center' ,
103
103
wrapAround : true ,
104
- heightMode : 'current ' ,
104
+ heightMode : 'max ' ,
105
105
arrowTheme : 'Gray' ,
106
106
} ;
107
107
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ class ChallengeHistoryModal extends Component {
28
28
loading,
29
29
isCopilot,
30
30
isAlgo,
31
+ themeName,
31
32
} = this . props ;
32
33
const { sortParam } = this . state ;
33
34
const challengesOrdered = _ . orderBy ( challenges , [ sortParam . field ] , [ sortParam . order ] ) ;
@@ -44,7 +45,7 @@ class ChallengeHistoryModal extends Component {
44
45
competitor = { competitor }
45
46
isCopilot = { isCopilot }
46
47
isAlgo = { isAlgo }
47
- themeName = "TCO22"
48
+ themeName = { themeName }
48
49
/>
49
50
</ div >
50
51
< table styleName = "history-table" >
@@ -178,6 +179,7 @@ ChallengeHistoryModal.propTypes = {
178
179
loading : PT . bool . isRequired ,
179
180
isAlgo : PT . bool ,
180
181
isCopilot : PT . bool ,
182
+ themeName : PT . string . isRequired ,
181
183
} ;
182
184
183
185
export default ChallengeHistoryModal ;
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ $light-gray: #d4d4d4;
12
12
width : 70% ;
13
13
max-height : 90% ;
14
14
overflow-y : auto ;
15
- padding : 80 px 78px ;
15
+ padding : 60 px 78px 80 px ;
16
16
17
17
@media (max-width : 768px ) {
18
18
width : 90% ;
@@ -26,7 +26,7 @@ $light-gray: #d4d4d4;
26
26
font-weight : 500 ;
27
27
line-height : 38px ;
28
28
text-align : center ;
29
- margin-bottom : 60 px ;
29
+ margin-bottom : 40 px ;
30
30
text-transform : uppercase ;
31
31
32
32
@media (max-width : 768px ) {
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ function ChallengeHistoryModalContainer({
13
13
loading,
14
14
isCopilot,
15
15
isAlgo,
16
+ themeName,
16
17
} ) {
17
18
useEffect ( ( ) => {
18
19
getChallengesHistory ( dataUrl , competitor ) ;
@@ -26,6 +27,7 @@ function ChallengeHistoryModalContainer({
26
27
loading = { loading }
27
28
isCopilot = { isCopilot }
28
29
isAlgo = { isAlgo }
30
+ themeName = { themeName }
29
31
/>
30
32
) ;
31
33
}
@@ -36,6 +38,7 @@ ChallengeHistoryModalContainer.defaultProps = {
36
38
loading : false ,
37
39
isCopilot : false ,
38
40
isAlgo : false ,
41
+ themeName : 'Default' ,
39
42
} ;
40
43
41
44
const CHALLENGES_TYPE = PT . arrayOf ( PT . shape ( {
@@ -61,6 +64,7 @@ ChallengeHistoryModalContainer.propTypes = {
61
64
loading : PT . bool ,
62
65
isAlgo : PT . bool ,
63
66
isCopilot : PT . bool ,
67
+ themeName : PT . string ,
64
68
} ;
65
69
66
70
function mapStateToProps ( state , ownProps ) {
Original file line number Diff line number Diff line change @@ -97,6 +97,7 @@ class LeaderboardPageContainer extends React.Component {
97
97
dataUrl = { tcoPointsApiUrl }
98
98
isCopilot = { isCopilot }
99
99
isAlgo = { isAlgo }
100
+ themeName = { themeName }
100
101
/>
101
102
) : null
102
103
}
You can’t perform that action at this time.
0 commit comments