feature/IO-3291-Tasks-Notifications: Checkpoint

This commit is contained in:
Dave Richer
2025-07-08 11:38:18 -04:00
parent 9845c1cea5
commit 443ed717cb
2 changed files with 113 additions and 29 deletions

View File

@@ -169,6 +169,7 @@ function Header(props) {
setTaskCenterVisible(false); // Close task center
return;
}
if (isTaskCenterClick) {
setNotificationVisible(scenarioNotificationsOn ? false : notificationVisible); // Close notification center if enabled
return;
@@ -177,6 +178,7 @@ function Header(props) {
if (taskCenterVisible && taskCenterRef.current && !taskCenterRef.current.contains(event.target)) {
setTaskCenterVisible(false);
}
if (
scenarioNotificationsOn &&
notificationVisible &&
@@ -213,9 +215,10 @@ function Header(props) {
},
[handleMenuClick]
);
// --- Menu Items ---
// built externally to keep the component clean
// built externally to keep the component clean, but on this level to prevent unnecessary re-renders
const accountingChildren = useMemo(
() =>
buildAccountingChildren({