Skip to content

Commit dfb002e

Browse files
committed
improvement(reskin): challenge listing part 5 f2f
1 parent ad933a9 commit dfb002e

File tree

3 files changed

+40
-1
lines changed
  • src/shared

3 files changed

+40
-1
lines changed

src/shared/components/challenge-detail/Header/style.scss

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
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 {
@@ -29,6 +33,10 @@
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 {
@@ -41,6 +49,10 @@
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 {
@@ -51,6 +63,10 @@
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 {

src/shared/components/challenge-listing/Listing/ReviewOpportunityBucket/index.jsx

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff 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}

src/shared/utils/challenge-listing/helper.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ export function calculateScore(score) {
4848
*/
4949
export 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';

0 commit comments

Comments
 (0)