fix: add 'text' entry to nodeIcons + all themes

Build failed because Record<NodeType, ...> in nodeIcons.ts and
themes.ts requires every NodeType key. Add Type icon for text and
neutral border/icon palette per theme.
This commit is contained in:
Pouzor
2026-05-10 16:31:38 +02:00
parent 27fd78ece6
commit 32eb9fbe23
2 changed files with 8 additions and 1 deletions
+2 -1
View File
@@ -19,7 +19,7 @@ import {
// Communications
Mail, MessageSquare, Phone,
// Misc devices
Printer, Smartphone, Search, Filter, BookOpen, PlugZap,
Printer, Smartphone, Search, Filter, BookOpen, PlugZap, Type,
} from 'lucide-react'
import type { LucideIcon } from 'lucide-react'
@@ -142,6 +142,7 @@ export const NODE_TYPE_DEFAULT_ICONS: Record<NodeType, LucideIcon> = {
generic: Circle,
group: Circle,
groupRect: Circle,
text: Type,
}
/** Resolve the display icon for a node — custom_icon takes priority over type default. */