File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import {
11
11
getUnhandledProps ,
12
12
getComponentType ,
13
13
isRefObject ,
14
- useKeyOnly ,
14
+ getKeyOnly ,
15
15
useIsomorphicLayoutEffect ,
16
16
useEventCallback ,
17
17
useForceUpdate ,
@@ -110,8 +110,8 @@ const Sidebar = React.forwardRef((props, ref) => {
110
110
animation ,
111
111
direction ,
112
112
width ,
113
- useKeyOnly ( animationTick > 0 , 'animating' ) ,
114
- useKeyOnly ( visible , 'visible' ) ,
113
+ getKeyOnly ( animationTick > 0 , 'animating' ) ,
114
+ getKeyOnly ( visible , 'visible' ) ,
115
115
'sidebar' ,
116
116
className ,
117
117
)
Original file line number Diff line number Diff line change 7
7
customPropTypes ,
8
8
getComponentType ,
9
9
getUnhandledProps ,
10
- useKeyOnly ,
10
+ getKeyOnly ,
11
11
} from '../../lib'
12
12
13
13
/**
@@ -16,7 +16,7 @@ import {
16
16
const SidebarPusher = React . forwardRef ( function ( props , ref ) {
17
17
const { className, dimmed, children, content } = props
18
18
19
- const classes = cx ( 'pusher' , useKeyOnly ( dimmed , 'dimmed' ) , className )
19
+ const classes = cx ( 'pusher' , getKeyOnly ( dimmed , 'dimmed' ) , className )
20
20
const rest = getUnhandledProps ( SidebarPusher , props )
21
21
const ElementType = getComponentType ( props )
22
22
You can’t perform that action at this time.
0 commit comments