File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import { barChartOutline } from "ionicons/icons" ;
2+
13import {
24 ALL_DURATIONS ,
35 createSortFromDurations ,
@@ -8,13 +10,18 @@ export const TOP_DURATIONS = ALL_DURATIONS satisfies readonly VgerDuration[];
810
911const TOP_DURATION_SORTS = createSortFromDurations ( "Top" , TOP_DURATIONS ) ;
1012
11- export const LEMMY_TOP_SORTS = {
13+ const TOP = {
1214 label : "Top" ,
15+ icon : barChartOutline ,
16+ } as const ;
17+
18+ export const LEMMY_TOP_SORTS = {
19+ ...TOP ,
1320 children : TOP_DURATION_SORTS ,
1421} as const ;
1522
1623export const PIEFED_TOP_SORTS = {
17- label : "Top" ,
24+ ... TOP ,
1825 children : [
1926 "TopHour" ,
2027 "TopSixHour" ,
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ import { startCase } from "es-toolkit";
55import {
66 albumsOutline ,
77 arrowUpCircleOutline ,
8- barChartOutline ,
98 calendarOutline ,
109 chatbubbleEllipsesOutline ,
1110 chatbubblesOutline ,
@@ -291,9 +290,8 @@ export function getSortIcon(sort: AnyVgerSort): string {
291290 case "TopYear" :
292291 return calendarYear ;
293292 case "TopAll" :
294- return trophyOutline ;
295293 case "Top" :
296- return barChartOutline ;
294+ return trophyOutline ;
297295 case "Old" :
298296 return hourglassOutline ;
299297 case "Controversial" :
You can’t perform that action at this time.
0 commit comments