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:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user