MCPcopy Create free account
hub / github.com/GreatStackDev/project-management / getTaskStatusColor

Function getTaskStatusColor

src/components/MyTasksSidebar.jsx:16–27  ·  view source on GitHub ↗
(status)

Source from the content-addressed store, hash-verified

14 const toggleMyTasks = () => setShowMyTasks(prev => !prev);
15
16 const getTaskStatusColor = (status) => {
17 switch (status) {
18 case 'DONE':
19 return 'bg-green-500';
20 case 'IN_PROGRESS':
21 return 'bg-yellow-500';
22 case 'TODO':
23 return 'bg-gray-500 dark:bg-zinc-500';
24 default:
25 return 'bg-gray-400 dark:bg-zinc-400';
26 }
27 };
28
29 const fetchUserTasks = () => {
30 const userId = user?.id || '';

Callers 1

MyTasksSidebarFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected