feat: remove unused alert management code and optimize notification fetching interval

This commit is contained in:
SaelixCode
2026-02-27 10:17:33 -05:00
parent 9cdf273b8c
commit b95838ae9c
4 changed files with 164 additions and 350 deletions
+2 -2
View File
@@ -139,7 +139,7 @@ export default function EditorLayout() {
useEffect(() => {
refreshStacks();
fetchNotifications();
const notificationInterval = setInterval(fetchNotifications, 30000);
const notificationInterval = setInterval(fetchNotifications, 5000);
return () => clearInterval(notificationInterval);
}, []);
@@ -630,7 +630,7 @@ export default function EditorLayout() {
<DropdownMenuContent align="end">
<DropdownMenuItem onClick={() => openAlertSheet(file)}>
<BellRing className="h-4 w-4 mr-2" />
Create Alert
Alerts
</DropdownMenuItem>
</DropdownMenuContent>
</DropdownMenu>