From 8e1d9393256dd239d1274c8e87193f5fa3879f20 Mon Sep 17 00:00:00 2001 From: Joseph Izang Date: Mon, 11 Oct 2021 13:53:21 +0100 Subject: [PATCH] remove commented out code --- .../src/lib/remix-ui-vertical-icons-panel.tsx | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/libs/remix-ui/vertical-icons-panel/src/lib/remix-ui-vertical-icons-panel.tsx b/libs/remix-ui/vertical-icons-panel/src/lib/remix-ui-vertical-icons-panel.tsx index fc62cdd5c6..bb7bc3f744 100644 --- a/libs/remix-ui/vertical-icons-panel/src/lib/remix-ui-vertical-icons-panel.tsx +++ b/libs/remix-ui/vertical-icons-panel/src/lib/remix-ui-vertical-icons-panel.tsx @@ -24,10 +24,6 @@ export function RemixUiVerticalIconsPanel ({ }: RemixUiVerticalIconsPanelProps) { const scrollableRef = useRef() const iconPanelRef = useRef() - // @ts-ignore - // scrollHeight = scrollableRef.current!.scrollHeight - // // @ts-ignore - // clientHeight = scrollableRef.current!.clientHeight function onThemeChanged (themeType: any) { const invert = themeType === 'dark' ? 1 : 0 @@ -77,10 +73,6 @@ export function RemixUiVerticalIconsPanel ({ verticalIconsPlugin.renderComponent() } - useEffect(() => { - console.log('usefRef for scrolling', scrollableRef) - }) - useEffect(() => { const themeModule = verticalIconsPlugin.registry.get('themeModule').api themeModule.events.on('themeChanged', (theme: any) => { @@ -88,14 +80,6 @@ export function RemixUiVerticalIconsPanel ({ }) }, []) - useEffect(() => { - // @ts-ignore - scrollHeight = scrollableRef.current.scrollHeight - // @ts-ignore - clientHeight = scrollableRef.current.clientHeight - console.log('scrollHeight ', scrollHeight) - }, []) - useEffect(() => { const themeModule = verticalIconsPlugin.registry.get('themeModule').api themeModule.events.on('themeChanged', (theme: any) => { @@ -329,7 +313,7 @@ export function RemixUiVerticalIconsPanel ({ ))} - {scrollableRef.current && scrollableRef.current!.scrollHeight > clientHeight + {scrollableRef.current && scrollableRef.current!.scrollHeight > scrollableRef.current!.clientHeight ? : null }