feat: disable org menu when in focus mode on the activity page

This commit is contained in:
swve 2025-04-29 14:44:34 +02:00
parent 46bf3f9c82
commit 59b5ac4793
2 changed files with 46 additions and 1 deletions

View file

@ -161,6 +161,10 @@ function ActivityClient(props: ActivityClientProps) {
React.useEffect(() => {
if (typeof window !== 'undefined') {
localStorage.setItem('globalFocusMode', isFocusMode.toString());
// Dispatch custom event for focus mode change
window.dispatchEvent(new CustomEvent('focusModeChange', {
detail: { isFocusMode }
}));
isInitialRender.current = false;
}
}, [isFocusMode]);