@@ -25,38 +25,37 @@ export default function Sort() {
25
25
26
26
const navigationItems = [
27
27
{
28
- name : " Best match" ,
28
+ name : ' Best match' ,
29
29
href : { query : { ...router . query } }
30
30
} ,
31
31
{
32
- name : " Most stars" ,
32
+ name : ' Most stars' ,
33
33
href : { query : { ...router . query , s : 'stars' , o : 'desc' } }
34
34
} ,
35
35
{
36
- name : " Fewest stars" ,
36
+ name : ' Fewest stars' ,
37
37
href : { query : { ...router . query , s : 'stars' , o : 'asc' } }
38
38
} ,
39
39
{
40
- name : " Most forks" ,
40
+ name : ' Most forks' ,
41
41
href : { query : { ...router . query , s : 'forks' , o : 'desc' } }
42
42
} ,
43
43
{
44
- name : " Fewest forks" ,
44
+ name : ' Fewest forks' ,
45
45
href : { query : { ...router . query , s : 'forks' , o : 'asc' } }
46
46
} ,
47
47
{
48
- name : " Most help wanted issues" ,
48
+ name : ' Most help wanted issues' ,
49
49
href : { query : { ...router . query , s : 'help-wanted-issues' , o : 'desc' } }
50
50
} ,
51
51
{
52
- name : " Recently updated" ,
52
+ name : ' Recently updated' ,
53
53
href : { query : { ...router . query , s : 'updated' , o : 'desc' } }
54
54
} ,
55
55
{
56
- name : " Least recently updated" ,
56
+ name : ' Least recently updated' ,
57
57
href : { query : { ...router . query , s : 'updated' , o : 'asc' } }
58
- } ,
59
-
58
+ }
60
59
] ;
61
60
62
61
const selectedSort = ( ) : SortTypes => {
@@ -79,7 +78,7 @@ export default function Sort() {
79
78
80
79
const handleClick = ( ) => {
81
80
const elem = document . activeElement as HTMLElement ;
82
- if ( elem ) {
81
+ if ( elem ) {
83
82
elem ?. blur ( ) ;
84
83
}
85
84
} ;
@@ -117,9 +116,7 @@ export default function Sort() {
117
116
< ul tabIndex = { 0 } className = "menu menu-vertical" >
118
117
{ navigationItems . map ( ( item , index ) => (
119
118
< li key = { index } onClick = { handleClick } >
120
- < Link href = { { query : item . href . query } } >
121
- { item . name }
122
- </ Link >
119
+ < Link href = { { query : item . href . query } } > { item . name } </ Link >
123
120
</ li >
124
121
) ) }
125
122
</ ul >
0 commit comments