mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-03 22:59:14 +00:00
refactor: remove unused getCategoryIconByTitle function and clean up categoryIcons utility
This commit is contained in:
@@ -512,7 +512,6 @@ export const useDialogService = () => {
|
||||
showAboutDialog,
|
||||
showExecutionErrorDialog,
|
||||
showTemplateWorkflowsDialog,
|
||||
// showWorkflowTemplateSelectorDialog,
|
||||
showManagerDialog,
|
||||
showManagerProgressDialog,
|
||||
showApiNodesSignInDialog,
|
||||
|
||||
@@ -50,23 +50,3 @@ export const getCategoryIcon = (categoryId: string): string => {
|
||||
// Return mapped icon or fallback to folder
|
||||
return iconMap[categoryId.toLowerCase()] || 'folder'
|
||||
}
|
||||
|
||||
/**
|
||||
* Maps category titles to their corresponding Lucide icon names
|
||||
*/
|
||||
export const getCategoryIconByTitle = (title: string): string => {
|
||||
const titleMap: Record<string, string> = {
|
||||
'Getting Started': 'graduation-cap',
|
||||
'Generation Type': 'sparkles',
|
||||
'Closed Source Models': 'hand-coins',
|
||||
'API Nodes': 'hand-coins',
|
||||
'Small Models': 'zap',
|
||||
Performance: 'zap',
|
||||
'Mac Compatible': 'command',
|
||||
'LoRA Training': 'dumbbell',
|
||||
Extensions: 'puzzle',
|
||||
'Tools & Building': 'wrench'
|
||||
}
|
||||
|
||||
return titleMap[title] || 'folder'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user