From 23daf47353d6ff4ee3dfbcd23a929ec442067282 Mon Sep 17 00:00:00 2001 From: lucaronin Date: Sat, 21 Feb 2026 16:26:32 +0100 Subject: [PATCH] fix: remove unused getSectionColor function (TS build fix) --- src/components/Sidebar.tsx | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/components/Sidebar.tsx b/src/components/Sidebar.tsx index 0f112a81..a7388870 100644 --- a/src/components/Sidebar.tsx +++ b/src/components/Sidebar.tsx @@ -78,11 +78,6 @@ export const Sidebar = memo(function Sidebar({ entries, selection, onSelect, onS return map }, [entries]) - const getSectionColor = (entry: VaultEntry) => { - const typeEntry = typeEntryMap[entry.isA ?? ''] - return getTypeColor(entry.isA ?? 'Note', typeEntry?.color) - } - const isActive = (sel: SidebarSelection): boolean => { if (selection.kind !== sel.kind) return false if (sel.kind === 'filter' && selection.kind === 'filter') return sel.filter === selection.filter