feat: contador en las pestañas de Tareas/Comentarios/Documentos de una actividad

Circulo con el numero al lado del nombre de la pestaña: Tareas muestra las pendientes (sin
marcar), Comentarios y Documentos el total. Soporte agregado al componente Tabs reutilizable
(tab.count), no solo al detalle de actividad.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Milton Gonzalez
2026-09-16 12:52:00 -05:00
parent 551d4f8c38
commit 1b23da7151
7 changed files with 28 additions and 6 deletions
+1
View File
@@ -4,6 +4,7 @@ export function Tabs({ tabs, active, onChange }) {
{tabs.map((tab) => (
<button key={tab.key} className={`tab-item ${active === tab.key ? 'active' : ''}`} onClick={() => onChange(tab.key)}>
{tab.label}
{!!tab.count && <span className="tab-badge">{tab.count}</span>}
</button>
))}
</div>