diff --git a/src/components/NoteList.tsx b/src/components/NoteList.tsx index 466f065f..74e824bf 100644 --- a/src/components/NoteList.tsx +++ b/src/components/NoteList.tsx @@ -4,6 +4,7 @@ import type { VaultEntry, SidebarSelection, ModifiedFile } from '../types' import { cn } from '@/lib/utils' import { Input } from '@/components/ui/input' import { MagnifyingGlass, Plus } from '@phosphor-icons/react' +import { getTypeColor, getTypeLightColor } from '../utils/typeColors' interface NoteListProps { entries: VaultEntry[] @@ -207,17 +208,23 @@ function NoteListInner({ entries, selection, selectedNote, modifiedFiles, onSele const renderItem = useCallback((entry: VaultEntry, isPinned = false) => { const isSelected = selectedNote?.path === entry.path && !isPinned + const typeColor = getTypeColor(entry.isA) + const typeLightColor = getTypeLightColor(entry.isA) return (
onSelectNote(entry)} >