Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ export const ErrorNavIndicator = () => {
};

fetchErrors();
const intervalId = setInterval(fetchErrors, 1000);
return () => clearInterval(intervalId);
}, [domain]);

if (errors.length === 0) return null;
Expand Down
3 changes: 1 addition & 2 deletions packages/web/src/app/[domain]/components/navigationMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,7 @@ export const NavigationMenu = async ({
<div className="flex items-center gap-2 px-3 py-1.5 bg-blue-50 dark:bg-blue-900/20 border border-blue-200 dark:border-blue-700 rounded-full text-blue-700 dark:text-blue-400 text-xs font-medium hover:bg-blue-100 dark:hover:bg-blue-900/30 transition-colors cursor-pointer">
<span className="inline-block w-2 h-2 bg-blue-400 dark:bg-blue-500 rounded-full"></span>
<span>
{Math.ceil((subscription.nextBillingDate * 1000 - Date.now()) / (1000 * 60 * 60 * 24))} days left in
trial
{Math.ceil((subscription.nextBillingDate * 1000 - Date.now()) / (1000 * 60 * 60 * 24))} days left in trial
</span>
</div>
</Link>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ export const ProgressNavIndicator = () => {
};

fetchInProgressJobs();
const intervalId = setInterval(fetchInProgressJobs, 1000);
return () => clearInterval(intervalId);
}, [domain]);

if (inProgressJobs.length === 0) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ export const WarningNavIndicator = () => {
};

fetchWarnings();
const intervalId = setInterval(fetchWarnings, 1000);
return () => clearInterval(intervalId);
}, [domain]);

if (warnings.length === 0) {
Expand Down
2 changes: 0 additions & 2 deletions packages/web/src/app/[domain]/connections/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,6 @@ export default function ConnectionManagementPage() {
}

loadData()
const intervalId = setInterval(loadData, 1000)
return () => clearInterval(intervalId)
}, [params.domain, params.id])

if (loading) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@ export const ConnectionList = ({
};

fetchConnections();
const intervalId = setInterval(fetchConnections, 1000);
return () => clearInterval(intervalId);
}, [domain]);

return (
Expand Down