File tree Expand file tree Collapse file tree 4 files changed +12
-7
lines changed
components/challenge-listing/Listing/Bucket
reducers/challenge-listing Expand file tree Collapse file tree 4 files changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ export default function Bucket({
58
58
refs . current . push ( el ) ;
59
59
}
60
60
} ;
61
- const activeSort = sort || 'updated ' ;
61
+ const activeSort = sort || 'startDate ' ;
62
62
63
63
const sortedChallenges = activeBucket === 'all' ? _ . clone ( challenges . slice ( 0 , 10 ) ) : _ . clone ( challenges ) ;
64
64
// sortedChallenges.sort(Sort[activeSort].func);
Original file line number Diff line number Diff line change @@ -817,9 +817,9 @@ function create(initialState) {
817
817
selectedCommunityId : 'All' ,
818
818
819
819
sorts : {
820
- ongoing : 'updated ' ,
821
- openForRegistration : 'updated ' ,
822
- my : 'updated ' ,
820
+ ongoing : 'startDate ' ,
821
+ openForRegistration : 'startDate ' ,
822
+ my : 'startDate ' ,
823
823
// past: 'updated',
824
824
reviewOpportunities : 'review-opportunities-start-date' ,
825
825
} ,
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ export const BUCKET_DATA = {
35
35
// hideCount: false,
36
36
name : 'My Challenges' ,
37
37
sorts : [
38
- SORTS . MOST_RECENT ,
38
+ SORTS . MOST_RECENT_START_DATE ,
39
39
// SORTS.TIME_TO_SUBMIT,
40
40
// SORTS.NUM_REGISTRANTS,
41
41
// SORTS.NUM_SUBMISSIONS,
@@ -52,7 +52,7 @@ export const BUCKET_DATA = {
52
52
// hideCount: false,
53
53
name : 'Open for registration' ,
54
54
sorts : [
55
- SORTS . MOST_RECENT ,
55
+ SORTS . MOST_RECENT_START_DATE ,
56
56
// SORTS.TIME_TO_REGISTER,
57
57
// SORTS.TIME_TO_SUBMIT,
58
58
// SORTS.NUM_REGISTRANTS,
@@ -71,7 +71,7 @@ export const BUCKET_DATA = {
71
71
// hideCount: false,
72
72
name : 'Ongoing challenges' ,
73
73
sorts : [
74
- SORTS . MOST_RECENT ,
74
+ SORTS . MOST_RECENT_START_DATE ,
75
75
// SORTS.CURRENT_PHASE,
76
76
SORTS . TITLE_A_TO_Z ,
77
77
// SORTS.PRIZE_HIGH_TO_LOW,
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import { sumBy } from 'lodash';
8
8
export const SORTS = {
9
9
// CURRENT_PHASE: 'current-phase',
10
10
MOST_RECENT : 'updated' ,
11
+ MOST_RECENT_START_DATE : 'startDate' ,
11
12
// NUM_REGISTRANTS: 'num-registrants',
12
13
// NUM_SUBMISSIONS: 'num-submissions',
13
14
// PRIZE_HIGH_TO_LOW: 'prize-high-to-low',
@@ -29,6 +30,10 @@ export default {
29
30
name : 'Most recent' ,
30
31
order : 'desc' ,
31
32
} ,
33
+ [ SORTS . MOST_RECENT_START_DATE ] : {
34
+ name : 'Most recent' ,
35
+ order : 'desc' ,
36
+ } ,
32
37
// [SORTS.NUM_REGISTRANTS]: {
33
38
// func: (a, b) => b.numOfRegistrants - a.numOfRegistrants,
34
39
// name: '# of registrants',
You can’t perform that action at this time.
0 commit comments