From 12666a0c27904a8683f5499154b30be98b07138b Mon Sep 17 00:00:00 2001 From: Anemaygi Date: Wed, 6 Nov 2024 19:36:11 -0300 Subject: [PATCH] =?UTF-8?q?Formatar=20c=C3=B3digo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/a.out | 0 .../src/components/Blocks/Calendario/View.jsx | 8 +- frontend/pnpm-lock.yaml | 706 +++++++++++------- 3 files changed, 434 insertions(+), 280 deletions(-) create mode 100644 frontend/a.out diff --git a/frontend/a.out b/frontend/a.out new file mode 100644 index 0000000..e69de29 diff --git a/frontend/packages/portalbrasil-intranet/src/components/Blocks/Calendario/View.jsx b/frontend/packages/portalbrasil-intranet/src/components/Blocks/Calendario/View.jsx index 43ffd77..7fc4277 100644 --- a/frontend/packages/portalbrasil-intranet/src/components/Blocks/Calendario/View.jsx +++ b/frontend/packages/portalbrasil-intranet/src/components/Blocks/Calendario/View.jsx @@ -12,7 +12,7 @@ const groupByDate = (items) => { const end = obj.end ? parseDate(obj.end.slice(0, 10)) : start; while (start < end) { - const key = start.toString(); + const key = start.toString(); if (key) { if (map[key] === undefined) { @@ -21,18 +21,16 @@ const groupByDate = (items) => { map[key].push(obj); } - start = start.add({days: 1}) + start = start.add({ days: 1 }); } return map; - - }, {}); }; const CalendarioBlockView = withQuerystringResults((props) => { const { data, isEditMode, path, pathname, className, listingItems } = props; const items = listingItems ? groupByDate(listingItems) : {}; - + return (