瀏覽代碼

clean code

Yuki Takei 2 年之前
父節點
當前提交
586ea4f07a
共有 1 個文件被更改,包括 0 次插入10 次删除
  1. 0 10
      apps/app/src/components/Sidebar/Sidebar.tsx

+ 0 - 10
apps/app/src/components/Sidebar/Sidebar.tsx

@@ -64,16 +64,6 @@ export const SidebarSubstance = memo((): JSX.Element => {
     resizableContainer.current.style.width = `${newWidth}px`;
   }, []);
 
-  useEffect(() => {
-    if (isCollapsed) {
-      setContentWidth(sidebarMinimizeWidth);
-    }
-    else {
-      // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
-      setContentWidth(currentProductNavWidth!);
-    }
-  }, [currentProductNavWidth, isCollapsed, setContentWidth]);
-
   const draggableAreaMoveHandler = useCallback((event: MouseEvent) => {
     event.preventDefault();