Explorar o código

Refactor: sidebar drag

yhua1998 hai 1 ano
pai
achega
28103c901d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/components/sidebar.tsx

+ 1 - 1
app/components/sidebar.tsx

@@ -53,7 +53,7 @@ function useHotKey() {
 }
 
 function useDragSideBar() {
-  const limit = useCallback((x: number) => Math.min(MAX_SIDEBAR_WIDTH, x));
+  const limit = (x: number) => Math.min(MAX_SIDEBAR_WIDTH, x);
 
   const config = useAppConfig();
   const startX = useRef(0);