@@ -80,22 +80,21 @@ export default function Sort() {
80
80
81
81
const handleClick = ( ) => {
82
82
const elem = document . activeElement as HTMLElement ;
83
- if ( elem ) {
83
+ if ( elem ) {
84
84
elem ?. blur ( ) ;
85
85
}
86
86
} ;
87
87
return (
88
88
< div className = "flex justify-center items-center mb-8 flex-col gap-2" >
89
89
< div className = "dropdown dropdown-hover" >
90
- < Button tabIndex = { 0 } className = "m-1 py-2" >
91
- < FontAwesomeIcon
92
- icon = { faCode }
93
- className = " w-6 h-6 mr-3"
94
- > </ FontAwesomeIcon >
95
- Language
96
- </ Button >
97
- < div
98
- className = "h-64 p-2 overflow-y-scroll dropdown-content shadow z-50 bg-base-100 rounded-box w-60" >
90
+ < Button tabIndex = { 0 } className = "m-1 py-2" >
91
+ < FontAwesomeIcon
92
+ icon = { faCode }
93
+ className = " w-6 h-6 mr-3"
94
+ > </ FontAwesomeIcon >
95
+ Language
96
+ </ Button >
97
+ < div className = "h-64 p-2 overflow-y-scroll dropdown-content shadow z-50 bg-base-100 rounded-box w-60" >
99
98
< ul tabIndex = { 0 } className = "menu menu-vertical" >
100
99
{ mainLanguages . sort ( sortByName ) . map ( language => (
101
100
< li key = { language } onClick = { handleClick } >
@@ -108,15 +107,14 @@ export default function Sort() {
108
107
</ div >
109
108
</ div >
110
109
< div className = "dropdown dropdown-hover" >
111
- < Button tabIndex = { 0 } className = "py-2" >
112
- < FontAwesomeIcon
113
- icon = { faArrowUpAZ }
114
- className = " w-6 h-6 mr-3"
115
- > </ FontAwesomeIcon >
116
- { selectedSort ( ) }
117
- </ Button >
118
- < div
119
- className = "h-64 p-2 z-50 overflow-y-scroll shadow dropdown-content bg-base-100 rounded-box w-60" >
110
+ < Button tabIndex = { 0 } className = "py-2" >
111
+ < FontAwesomeIcon
112
+ icon = { faArrowUpAZ }
113
+ className = " w-6 h-6 mr-3"
114
+ > </ FontAwesomeIcon >
115
+ { selectedSort ( ) }
116
+ </ Button >
117
+ < div className = "h-64 p-2 z-50 overflow-y-scroll shadow dropdown-content bg-base-100 rounded-box w-60" >
120
118
< ul tabIndex = { 0 } className = "menu menu-vertical" >
121
119
{ navigationItems . map ( ( item , index ) => (
122
120
< li key = { index } onClick = { handleClick } >
0 commit comments