File tree Expand file tree Collapse file tree 3 files changed +40
-1
lines changed
challenge-listing/Listing/ReviewOpportunityBucket Expand file tree Collapse file tree 3 files changed +40
-1
lines changed Original file line number Diff line number Diff line change 18
18
padding : 0 25px !important ;
19
19
background : #137d60 !important ;
20
20
color : #fff !important ;
21
+
22
+ @include xs-to-sm {
23
+ width : fit-content ;
24
+ }
21
25
}
22
26
23
27
.submitButtonDisabled {
29
33
padding : 0 25px !important ;
30
34
color : #767676 !important ;
31
35
background : #f4f4f4 !important ;
36
+
37
+ @include xs-to-sm {
38
+ width : fit-content ;
39
+ }
32
40
}
33
41
34
42
.unregisterButton {
41
49
color : #137d60 !important ;
42
50
border-color : #137d60 !important ;
43
51
background : #fff !important ;
52
+
53
+ @include xs-to-sm {
54
+ width : fit-content ;
55
+ }
44
56
}
45
57
46
58
.registerBtn {
51
63
height : 48px ;
52
64
padding : 0 25px !important ;
53
65
background-color : #137d60 !important ;
66
+
67
+ @include xs-to-sm {
68
+ width : fit-content ;
69
+ }
54
70
}
55
71
56
72
.challenge-ops-container {
Original file line number Diff line number Diff line change @@ -83,6 +83,17 @@ export default function ReviewOpportunityBucket({
83
83
? filteredOpportunities . length > 0 && (
84
84
< SortingSelectBar
85
85
title = "Open for review"
86
+ options = {
87
+ BUCKET_DATA [ bucket ] . sorts . map ( item => ( {
88
+ label : Sort [ item ] . name ,
89
+ value : item ,
90
+ } ) )
91
+ }
92
+ value = { {
93
+ label : Sort [ activeSort ] . name ,
94
+ value : activeSort ,
95
+ } }
96
+ onSelect = { setSort }
86
97
/>
87
98
)
88
99
: (
@@ -109,6 +120,17 @@ export default function ReviewOpportunityBucket({
109
120
< div styleName = "review-opportunity-bucket" >
110
121
< SortingSelectBar
111
122
title = { BUCKET_DATA [ bucket ] . name }
123
+ options = {
124
+ BUCKET_DATA [ bucket ] . sorts . map ( item => ( {
125
+ label : Sort [ item ] . name ,
126
+ value : item ,
127
+ } ) )
128
+ }
129
+ value = { {
130
+ label : Sort [ activeSort ] . name ,
131
+ value : activeSort ,
132
+ } }
133
+ onSelect = { setSort }
112
134
/>
113
135
< h1 styleName = "no-results" >
114
136
{ NO_RESULTS_MESSAGE }
Original file line number Diff line number Diff line change @@ -48,7 +48,8 @@ export function calculateScore(score) {
48
48
*/
49
49
export const formatOrdinals = ( n ) => {
50
50
let ord = '' ;
51
- switch ( n ) {
51
+ const place = String ( n ) ;
52
+ switch ( place ) {
52
53
case '1' : ord = '1st' ;
53
54
break ;
54
55
case '2' : ord = '2nd' ;
You can’t perform that action at this time.
0 commit comments