mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-29 02:32:18 +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,
|
showAboutDialog,
|
||||||
showExecutionErrorDialog,
|
showExecutionErrorDialog,
|
||||||
showTemplateWorkflowsDialog,
|
showTemplateWorkflowsDialog,
|
||||||
// showWorkflowTemplateSelectorDialog,
|
|
||||||
showManagerDialog,
|
showManagerDialog,
|
||||||
showManagerProgressDialog,
|
showManagerProgressDialog,
|
||||||
showApiNodesSignInDialog,
|
showApiNodesSignInDialog,
|
||||||
|
|||||||
@@ -50,23 +50,3 @@ export const getCategoryIcon = (categoryId: string): string => {
|
|||||||
// Return mapped icon or fallback to folder
|
// Return mapped icon or fallback to folder
|
||||||
return iconMap[categoryId.toLowerCase()] || '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