@@ -16,8 +16,8 @@ import {
16
16
makeDebugger ,
17
17
objectDiff ,
18
18
setRef ,
19
- useKeyOnly ,
20
- useKeyOrValueAndKey ,
19
+ getKeyOnly ,
20
+ getKeyOrValueAndKey ,
21
21
} from '../../lib'
22
22
import Icon from '../../elements/Icon'
23
23
import Label from '../../elements/Label'
@@ -1051,7 +1051,7 @@ class DropdownInner extends Component {
1051
1051
// single menu child
1052
1052
if ( ! childrenUtils . isNil ( children ) ) {
1053
1053
const menuChild = Children . only ( children )
1054
- const className = cx ( direction , useKeyOnly ( open , 'visible' ) , menuChild . props . className )
1054
+ const className = cx ( direction , getKeyOnly ( open , 'visible' ) , menuChild . props . className )
1055
1055
1056
1056
return cloneElement ( menuChild , { className, ...ariaOptions } )
1057
1057
}
@@ -1096,31 +1096,31 @@ class DropdownInner extends Component {
1096
1096
// Classes
1097
1097
const classes = cx (
1098
1098
'ui' ,
1099
- useKeyOnly ( open , 'active visible' ) ,
1100
- useKeyOnly ( disabled , 'disabled' ) ,
1101
- useKeyOnly ( error , 'error' ) ,
1102
- useKeyOnly ( loading , 'loading' ) ,
1103
-
1104
- useKeyOnly ( basic , 'basic' ) ,
1105
- useKeyOnly ( button , 'button' ) ,
1106
- useKeyOnly ( compact , 'compact' ) ,
1107
- useKeyOnly ( fluid , 'fluid' ) ,
1108
- useKeyOnly ( floating , 'floating' ) ,
1109
- useKeyOnly ( inline , 'inline' ) ,
1099
+ getKeyOnly ( open , 'active visible' ) ,
1100
+ getKeyOnly ( disabled , 'disabled' ) ,
1101
+ getKeyOnly ( error , 'error' ) ,
1102
+ getKeyOnly ( loading , 'loading' ) ,
1103
+
1104
+ getKeyOnly ( basic , 'basic' ) ,
1105
+ getKeyOnly ( button , 'button' ) ,
1106
+ getKeyOnly ( compact , 'compact' ) ,
1107
+ getKeyOnly ( fluid , 'fluid' ) ,
1108
+ getKeyOnly ( floating , 'floating' ) ,
1109
+ getKeyOnly ( inline , 'inline' ) ,
1110
1110
// TODO: consider augmentation to render Dropdowns as Button/Menu, solves icon/link item issues
1111
1111
// https://github.com/Semantic-Org/Semantic-UI-React/issues/401#issuecomment-240487229
1112
1112
// TODO: the icon class is only required when a dropdown is a button
1113
- // useKeyOnly (icon, 'icon'),
1114
- useKeyOnly ( labeled , 'labeled' ) ,
1115
- useKeyOnly ( item , 'item' ) ,
1116
- useKeyOnly ( multiple , 'multiple' ) ,
1117
- useKeyOnly ( search , 'search' ) ,
1118
- useKeyOnly ( selection , 'selection' ) ,
1119
- useKeyOnly ( simple , 'simple' ) ,
1120
- useKeyOnly ( scrolling , 'scrolling' ) ,
1121
- useKeyOnly ( upward , 'upward' ) ,
1122
-
1123
- useKeyOrValueAndKey ( pointing , 'pointing' ) ,
1113
+ // getKeyOnly (icon, 'icon'),
1114
+ getKeyOnly ( labeled , 'labeled' ) ,
1115
+ getKeyOnly ( item , 'item' ) ,
1116
+ getKeyOnly ( multiple , 'multiple' ) ,
1117
+ getKeyOnly ( search , 'search' ) ,
1118
+ getKeyOnly ( selection , 'selection' ) ,
1119
+ getKeyOnly ( simple , 'simple' ) ,
1120
+ getKeyOnly ( scrolling , 'scrolling' ) ,
1121
+ getKeyOnly ( upward , 'upward' ) ,
1122
+
1123
+ getKeyOrValueAndKey ( pointing , 'pointing' ) ,
1124
1124
'dropdown' ,
1125
1125
className ,
1126
1126
)
0 commit comments