mirror of
https://github.com/sourcebot-dev/sourcebot.git
synced 2025-12-12 20:35:24 +00:00
[temp] disable polling everywhere (#205)
This commit is contained in:
parent
0ac9509fab
commit
5076ee7f05
6 changed files with 1 additions and 12 deletions
|
|
@ -62,8 +62,6 @@ export const ErrorNavIndicator = () => {
|
|||
};
|
||||
|
||||
fetchErrors();
|
||||
const intervalId = setInterval(fetchErrors, 1000);
|
||||
return () => clearInterval(intervalId);
|
||||
}, [domain]);
|
||||
|
||||
if (errors.length === 0) return null;
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -46,8 +46,6 @@ export const ProgressNavIndicator = () => {
|
|||
};
|
||||
|
||||
fetchInProgressJobs();
|
||||
const intervalId = setInterval(fetchInProgressJobs, 1000);
|
||||
return () => clearInterval(intervalId);
|
||||
}, [domain]);
|
||||
|
||||
if (inProgressJobs.length === 0) {
|
||||
|
|
|
|||
|
|
@ -46,8 +46,6 @@ export const WarningNavIndicator = () => {
|
|||
};
|
||||
|
||||
fetchWarnings();
|
||||
const intervalId = setInterval(fetchWarnings, 1000);
|
||||
return () => clearInterval(intervalId);
|
||||
}, [domain]);
|
||||
|
||||
if (warnings.length === 0) {
|
||||
|
|
|
|||
|
|
@ -110,8 +110,6 @@ export default function ConnectionManagementPage() {
|
|||
}
|
||||
|
||||
loadData()
|
||||
const intervalId = setInterval(loadData, 1000)
|
||||
return () => clearInterval(intervalId)
|
||||
}, [params.domain, params.id])
|
||||
|
||||
if (loading) {
|
||||
|
|
|
|||
|
|
@ -59,8 +59,6 @@ export const ConnectionList = ({
|
|||
};
|
||||
|
||||
fetchConnections();
|
||||
const intervalId = setInterval(fetchConnections, 1000);
|
||||
return () => clearInterval(intervalId);
|
||||
}, [domain]);
|
||||
|
||||
return (
|
||||
|
|
|
|||
Loading…
Reference in a new issue