Fix NodeJS.Timeout type errors in frontend

- Change NodeJS.Timeout to ReturnType<typeof setTimeout> for browser compatibility
- Fix timeout ref types in GovernanceModelBadge and TeamDashboard
- All TypeScript compilation errors now resolved
This commit is contained in:
2026-01-14 16:59:16 +01:00
parent aba16f68de
commit 68518f0193
3 changed files with 4 additions and 3 deletions

View File

@@ -68,7 +68,7 @@ export default function TeamDashboard() {
const [statusDropdownOpen, setStatusDropdownOpen] = useState(false);
const [governanceModels, setGovernanceModels] = useState<ReferenceValue[]>([]);
const [hoveredGovModel, setHoveredGovModel] = useState<string | null>(null);
const hoverTimeoutRef = useRef<NodeJS.Timeout | null>(null);
const hoverTimeoutRef = useRef<ReturnType<typeof setTimeout> | null>(null);
// Hover handlers with delayed hide to prevent flickering when moving between badges
const handleGovModelMouseEnter = useCallback((hoverKey: string) => {