Skip to content

Commit 1ba8dd0

Browse files
chore: replace deprecated useKeyOnly with getKeyOnly in modules/Tab
1 parent 618ff41 commit 1ba8dd0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/modules/Tab/TabPane.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
customPropTypes,
99
getComponentType,
1010
getUnhandledProps,
11-
useKeyOnly,
11+
getKeyOnly,
1212
} from '../../lib'
1313
import Segment from '../../elements/Segment/Segment'
1414

@@ -18,7 +18,7 @@ import Segment from '../../elements/Segment/Segment'
1818
const TabPane = React.forwardRef(function (props, ref) {
1919
const { active = true, children, className, content, loading } = props
2020

21-
const classes = cx(useKeyOnly(active, 'active'), useKeyOnly(loading, 'loading'), 'tab', className)
21+
const classes = cx(getKeyOnly(active, 'active'), getKeyOnly(loading, 'loading'), 'tab', className)
2222
const rest = getUnhandledProps(TabPane, props)
2323
const ElementType = getComponentType(props, { defaultAs: Segment })
2424

0 commit comments

Comments
 (0)