(fix): recharts warnings
All checks were successful
/ deploy (push) Successful in 14m44s

(fix): fullscreen popovers not showing
(qol): update todo
This commit is contained in:
Alois 2026-05-09 15:39:19 +02:00
commit bd1622d63a
9 changed files with 87 additions and 68 deletions

View file

@ -522,7 +522,9 @@ export function triggerCallLayoutCalculation() {
}));
}
export function setScreenRef(screenRef: React.RefObject<HTMLDivElement | null> | null) {
export function setScreenRef(
screenRef: React.RefObject<HTMLDivElement | null> | null,
) {
useCall.setState({ screenRef });
}
@ -1093,7 +1095,8 @@ export function useInitializeCall() {
};
document.addEventListener("fullscreenchange", handleFullscreenChange);
return () => document.removeEventListener("fullscreenchange", handleFullscreenChange);
return () =>
document.removeEventListener("fullscreenchange", handleFullscreenChange);
}, []);
// esc key listener
@ -1107,7 +1110,7 @@ export function useInitializeCall() {
useCall.setState({ callIsFullscreen: false });
}
};
window.addEventListener("keydown", onKeyDown);
return () => window.removeEventListener("keydown", onKeyDown);
}, [location.pathname]);