Skip to content

Self-improving AI Employees for everyone

chore: fix CI eslint errors

trohitg14ab5afc5371
diff --git a/client/src/assets/icons/NodeIcon.tsx b/client/src/assets/icons/NodeIcon.tsx
index 790a1a84..ed12582f 100644
--- a/client/src/assets/icons/NodeIcon.tsx
+++ b/client/src/assets/icons/NodeIcon.tsx
@@ -47,7 +47,10 @@ export const NodeIcon: React.FC<NodeIconProps> = ({
let inner: React.ReactNode;
const LibIcon = resolveLibraryIcon(icon);
if (LibIcon) {
- inner = <LibIcon className="h-full w-full" />;
+ // LibIcon is a runtime-resolved component reference; using it as a JSX
+ // tag trips react-hooks/static-components. createElement is equivalent
+ // and rule-clean.
+ inner = React.createElement(LibIcon, { className: 'h-full w-full' });
} else {
const resolved = resolveIcon(icon);
if (!resolved) {
diff --git a/client/src/components/credentials/sections/ProviderDefaultsSection.tsx b/client/src/components/credentials/sections/ProviderDefaultsSection.tsx
index f135bf42..ec2e2909 100644
--- a/client/src/components/credentials/sections/ProviderDefaultsSection.tsx
+++ b/client/src/components/credentials/sections/ProviderDefaultsSection.tsx
@@ -6,7 +6,7 @@
* fields based on `thinking_enabled` + the constraint's thinking_type.
*/
-import React, { useCallback, useEffect, useMemo, useState } from 'react';
+import React, { useCallback, useEffect, useState } from 'react';
import { useForm } from 'react-hook-form';
import { zodResolver } from '@hookform/resolvers/zod';
import { z } from 'zod';
diff --git a/client/src/components/ui/TopToolbar.tsx b/client/src/components/ui/TopToolbar.tsx
index d7089d6d..8f03c662 100644
--- a/client/src/components/ui/TopToolbar.tsx
+++ b/client/src/components/ui/TopToolbar.tsx
@@ -50,6 +50,8 @@ import { useApiKeys, GlobalModelState } from '../../hooks/useApiKeys';
import { useWebSocket } from '../../contexts/WebSocketContext';
import { AI_PROVIDER_META } from '../icons/AIProviderIcons';
+const Divider = () => <div className="mx-1 h-6 w-px bg-border" />;
+
interface TopToolbarProps {
workflowName: string;
onWorkflowNameChange: (name: string) => void;
@@ -150,10 +152,6 @@ const TopToolbar: React.FC<TopToolbarProps> = ({
}
};
- const Divider = () => (
- <div className="mx-1 h-6 w-px bg-border" />
- );
-
return (
<div className="flex h-12 items-center justify-between gap-3 border-b border-border bg-muted px-3">
{/* ---------- Left Section ---------- */}