From 8c1e3807d73b9b9e2e95b7600f6e80ea33b7b8c4 Mon Sep 17 00:00:00 2001 From: msantos-lab Date: Sat, 13 Jul 2024 12:27:27 +0200 Subject: [PATCH] =?UTF-8?q?altera=C3=A7=C3=A3o=20para=20education=20e=20co?= =?UTF-8?q?rre=C3=A7=C3=A3o=20exibi=C3=A7=C3=A3o=20na=20pg=20atividades?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/constants/index.js | 2 +- src/pages/Activities/index.js | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/constants/index.js b/src/constants/index.js index 145caf6..e959f7d 100644 --- a/src/constants/index.js +++ b/src/constants/index.js @@ -6,7 +6,7 @@ const Categories = Object.freeze({ EVENT: { label: 'evento', color: 'dark-blue' }, WORKSHOP: { label: 'workshop', color: 'dark-blue' }, MEDIA: { label: 'media', color: 'dark-blue' }, - EDUCACAO: { label: 'educação', color: 'dark-blue' } + EDUCATION: { label: 'educação', color: 'dark-blue' } }); const LinkType = Object.freeze({ diff --git a/src/pages/Activities/index.js b/src/pages/Activities/index.js index e000844..f8fa751 100644 --- a/src/pages/Activities/index.js +++ b/src/pages/Activities/index.js @@ -108,7 +108,9 @@ function Activities({ translation }) { {Object.values(Constants.Categories).map((category, index) => { const label = category.label; - return ( + const categoryTotal = calculateCategoryTotal(label); + + return categoryTotal ? ( + ) : ( + '' ); })}