dashboard: reimaginacao

Signed-off-by: Rodrigo B. de Sousa Martins <rodrigo.sousa.577@gmail.com>
This commit is contained in:
rodrigo committed 2025-07-15 19:47:49 -03:00
1 parent 4d22c07151
commit 3d919350c8
1 file changed
+4 -1
+4 -1
View File
@@ -41,9 +41,12 @@ export const WorkflowTarefas: React.FC = () => {
); );
} }
// Exibir apenas tarefas que não estão concluídas ou canceladas
const tarefasAtivas = tarefas.filter((t: Tarefa) => t.status !== 'CONCLUIDA' && t.status !== 'CANCELADA');
return ( return (
<div className="flex flex-col gap-4"> <div className="flex flex-col gap-4">
{tarefas.map((tarefa: Tarefa) => ( {tarefasAtivas.map((tarefa: Tarefa) => (
<div key={tarefa.id} className="border rounded p-4 shadow flex justify-between items-center"> <div key={tarefa.id} className="border rounded p-4 shadow flex justify-between items-center">
<span className="font-medium">{tarefa.titulo}</span> <span className="font-medium">{tarefa.titulo}</span>
<span className={`px-2 py-1 rounded text-xs ${ <span className={`px-2 py-1 rounded text-xs ${