Skip to content

Commit 6bab4a3

Browse files
chore: replace deprecated useKeyOnly with getKeyOnly in modules/Popup
1 parent b6234db commit 6bab4a3

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/modules/Embed/Embed.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
customPropTypes,
1010
getComponentType,
1111
getUnhandledProps,
12-
useKeyOnly,
12+
getKeyOnly,
1313
useAutoControlledValue,
1414
} from '../../lib'
1515
import Icon from '../../elements/Icon'
@@ -107,7 +107,7 @@ const Embed = React.forwardRef(function (props, ref) {
107107
)
108108
}
109109

110-
const classes = cx('ui', aspectRatio, useKeyOnly(active, 'active'), 'embed', className)
110+
const classes = cx('ui', aspectRatio, getKeyOnly(active, 'active'), 'embed', className)
111111
const rest = getUnhandledProps(Embed, props)
112112
const ElementType = getComponentType(props)
113113

src/modules/Popup/Popup.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ import {
1414
makeDebugger,
1515
SUI,
1616
useIsomorphicLayoutEffect,
17-
useKeyOnly,
18-
useKeyOrValueAndKey,
17+
getKeyOnly,
18+
getKeyOrValueAndKey,
1919
useMergedRefs,
2020
usePrevious,
2121
} from '../../lib'
@@ -193,10 +193,10 @@ const Popup = React.forwardRef(function (props, ref) {
193193
'ui',
194194
placementMapping[popperPlacement],
195195
size,
196-
useKeyOrValueAndKey(wide, 'wide'),
197-
useKeyOnly(basic, 'basic'),
198-
useKeyOnly(flowing, 'flowing'),
199-
useKeyOnly(inverted, 'inverted'),
196+
getKeyOrValueAndKey(wide, 'wide'),
197+
getKeyOnly(basic, 'basic'),
198+
getKeyOnly(flowing, 'flowing'),
199+
getKeyOnly(inverted, 'inverted'),
200200
'popup transition visible',
201201
className,
202202
)

0 commit comments

Comments
 (0)