MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / priorityClass

Function priorityClass

packages/app-core/src/components/TasksRow.tsx:25–30  ·  view source on GitHub ↗
(p: VaultTask['priority'])

Source from the content-addressed store, hash-verified

23}
24
25function priorityClass(p: VaultTask['priority']): string {
26 if (p === 'high') return 'text-rose-400'
27 if (p === 'med') return 'text-amber-400'
28 if (p === 'low') return 'text-sky-400'
29 return 'text-current/50'
30}
31
32function formatDue(iso: string | undefined): string {
33 if (!iso) return ''

Callers 1

TasksRowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected