From e8f0e9715595c3f115c5fb72f98aedd6b608ccbd Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Mon, 19 May 2025 18:30:31 -0700 Subject: fix: frontend titlebar typecheck --- site/src/components/TitleBar.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'site/src') diff --git a/site/src/components/TitleBar.tsx b/site/src/components/TitleBar.tsx index 651b402..daecb4e 100644 --- a/site/src/components/TitleBar.tsx +++ b/site/src/components/TitleBar.tsx @@ -111,7 +111,7 @@ const TitleBar: React.FC = () => { }, ]; - const calculateDropdownPosition = (buttonRef: React.RefObject) => { + const calculateDropdownPosition = (buttonRef: React.RefObject) => { if (!buttonRef.current) return {}; const rect = buttonRef.current.getBoundingClientRect(); @@ -138,7 +138,6 @@ const TitleBar: React.FC = () => { setOtherDropdownOpen(newState); }; - // Handle window resize useEffect(() => { const handleResize = () => { if (dropdownOpen) { -- cgit v1.2.3