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 1818 padding : 0 25px !important ;
1919 background : #137d60 !important ;
2020 color : #fff !important ;
21+
22+ @include xs-to-sm {
23+ width : fit-content ;
24+ }
2125}
2226
2327.submitButtonDisabled {
2933 padding : 0 25px !important ;
3034 color : #767676 !important ;
3135 background : #f4f4f4 !important ;
36+
37+ @include xs-to-sm {
38+ width : fit-content ;
39+ }
3240}
3341
3442.unregisterButton {
4149 color : #137d60 !important ;
4250 border-color : #137d60 !important ;
4351 background : #fff !important ;
52+
53+ @include xs-to-sm {
54+ width : fit-content ;
55+ }
4456}
4557
4658.registerBtn {
5163 height : 48px ;
5264 padding : 0 25px !important ;
5365 background-color : #137d60 !important ;
66+
67+ @include xs-to-sm {
68+ width : fit-content ;
69+ }
5470}
5571
5672.challenge-ops-container {
Original file line number Diff line number Diff line change @@ -83,6 +83,17 @@ export default function ReviewOpportunityBucket({
8383 ? filteredOpportunities . length > 0 && (
8484 < SortingSelectBar
8585 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 }
8697 />
8798 )
8899 : (
@@ -109,6 +120,17 @@ export default function ReviewOpportunityBucket({
109120 < div styleName = "review-opportunity-bucket" >
110121 < SortingSelectBar
111122 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 }
112134 />
113135 < h1 styleName = "no-results" >
114136 { NO_RESULTS_MESSAGE }
Original file line number Diff line number Diff line change @@ -48,7 +48,8 @@ export function calculateScore(score) {
4848 */
4949export const formatOrdinals = ( n ) => {
5050 let ord = '' ;
51- switch ( n ) {
51+ const place = String ( n ) ;
52+ switch ( place ) {
5253 case '1' : ord = '1st' ;
5354 break ;
5455 case '2' : ord = '2nd' ;
You can’t perform that action at this time.
0 commit comments