aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2025-05-19 18:30:31 -0700
committerPinapelz <yukais@pinapelz.com>2025-05-19 18:30:31 -0700
commite8f0e9715595c3f115c5fb72f98aedd6b608ccbd (patch)
tree40549a24d6cb3431c4bdda68465c7a722f1f79d8
parent4c34b978ce6560eb569f7f82838651e62b1ac9c1 (diff)
fix: frontend titlebar typecheck
-rw-r--r--site/src/components/TitleBar.tsx3
1 files changed, 1 insertions, 2 deletions
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<HTMLElement>) => {
+ const calculateDropdownPosition = (buttonRef: React.RefObject<HTMLElement | null>) => {
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) {
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage