fix: unify tender countdowns and add monthly calendar navigation

This commit is contained in:
2026-09-06 08:47:44 +03:00
parent a291b186df
commit b94ab97241
8 changed files with 123 additions and 49 deletions
+10
View File
@@ -0,0 +1,10 @@
import {useEffect, useState} from 'react';
// Keep expiry labels current even when the user leaves a screen open.
export function useDeadlineClock() {
const [now,setNow] = useState(() => new Date());
useEffect(() => {
const timer = setInterval(() => setNow(new Date()),30000);
return () => clearInterval(timer);
},[]);
return now;
}