From 28103c901dba611a531117fca2589cbc73f43b55 Mon Sep 17 00:00:00 2001 From: yhua1998 <101091026+yhua1998@users.noreply.github.com> Date: Wed, 13 Sep 2023 16:24:21 +0800 Subject: [PATCH] Refactor: sidebar drag --- app/components/sidebar.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/sidebar.tsx b/app/components/sidebar.tsx index c42138ef..db13bc9b 100644 --- a/app/components/sidebar.tsx +++ b/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);