@@ -100,7 +100,7 @@ const DropDown = <T, >({
100100 * contains an `order` field, indicating that a custom ordering for that list
101101 * exists and the list therefore should not be ordered alphabetically.
102102 */
103- const hasCustomOrder = unformattedOptions . every ( ( item ) =>
103+ const hasCustomOrder = unformattedOptions . every ( item =>
104104 isJson ( item . label ) && JSON . parse ( item . label ) . order !== undefined ) ;
105105
106106 if ( hasCustomOrder ) {
@@ -114,10 +114,10 @@ const DropDown = <T, >({
114114 return unformattedOptions ;
115115 } ;
116116
117- let commonProps : Props = {
117+ const commonProps : Props = {
118118 menuPlacement : menuPlacement ?? 'auto' ,
119119 tabIndex : tabIndex ,
120- theme : ( theme ) => ( dropDownSpacingTheme ( theme ) ) ,
120+ theme : theme => ( dropDownSpacingTheme ( theme ) ) ,
121121 styles : style ,
122122 defaultMenuIsOpen : defaultOpen ,
123123 autoFocus : autoFocus ,
@@ -128,7 +128,7 @@ const DropDown = <T, >({
128128 required ,
129129 ) ,
130130 placeholder : placeholder ,
131- onChange : ( element ) => handleChange ( element as { value : T , label : string } ) ,
131+ onChange : element => handleChange ( element as { value : T , label : string } ) ,
132132 menuIsOpen : menuIsOpen ,
133133 onMenuOpen : ( ) => openMenu ( true ) ,
134134 onMenuClose : ( ) => openMenu ( false ) ,
0 commit comments