8000 refactor(CSidebar): improve and clean-up syntax · lunaluna2021/coreui-react@4da20ab · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 4da20ab

Browse files
committed
refactor(CSidebar): improve and clean-up syntax
1 parent 5ff66ad commit 4da20ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/coreui-react/src/components/sidebar/CSidebar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export const CSidebar = forwardRef<HTMLDivElement, CSidebarProps>(
8585
}, [visible])
8686

8787
useEffect(() => {
88-
typeof inViewport !== 'undefined' && onVisibleChange && onVisibleChange(inViewport)
88+
inViewport !== undefined && onVisibleChange && onVisibleChange(inViewport)
8989
!inViewport && onHide && onHide()
9090
inViewport && onShow && onShow()
9191
}, [inViewport])

0 commit comments

Comments
 (0)
0