From e8716fc096bf033a9a6d4880172a55c9a416bfdb Mon Sep 17 00:00:00 2001 From: joseCorte-exe Date: Wed, 29 Jun 2022 14:53:12 -0300 Subject: [PATCH 1/2] fixing dashboard chart --- src/pages/dashboard/index.tsx | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/src/pages/dashboard/index.tsx b/src/pages/dashboard/index.tsx index 5a64a93..d9d2ead 100644 --- a/src/pages/dashboard/index.tsx +++ b/src/pages/dashboard/index.tsx @@ -66,20 +66,11 @@ export default function Dashboard({grossAnualGraph, grossAnualYears, grossMensal - value.mes.slice(3, 7).includes('2021')).sort((a, b) => { - if (parseFloat(a.mes.slice(0,2)) > parseFloat(b.mes.slice(1,2))) return 1 - if (parseFloat(a.mes.slice(0,2)) < parseFloat(b.mes.slice(1,2))) return -1 - - return 0 - })} - data2={costIndicator.filter((value, index) => value.mes.slice(3, 7).includes('2022'))} - label={costIndicator.filter((value, index) => value.mes.slice(3, 7).includes('2021')).sort((a, b) => { - if (parseFloat(a.mes.slice(0,2)) > parseFloat(b.mes.slice(1,2))) return 1 - if (parseFloat(a.mes.slice(0,2)) < parseFloat(b.mes.slice(1,2))) return -1 - - return 0 - }).map(value => value.mes)} barLabel /> + value.mes.slice(4, 8).includes('2021'))} + // data1={graphData} + data2={costIndicator.filter((value, index) => value.mes.slice(4, 8).includes('2022'))} + label={costIndicator.map(value => value.mes.slice(0, 3))} barLabel /> From 3084f746071d7382a75b96eab291f7accb299ab1 Mon Sep 17 00:00:00 2001 From: joseCorte-exe Date: Wed, 29 Jun 2022 14:56:03 -0300 Subject: [PATCH 2/2] try fix font --- next.config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/next.config.js b/next.config.js index dee1618..0adf626 100644 --- a/next.config.js +++ b/next.config.js @@ -1,12 +1,13 @@ /** @type {import('next').NextConfig} */ const nextConfig = { + optimizeFonts: false, reactStrictMode: true, compiler: { styledComponents: true, }, images: { domains: ["kluppdevelopment.s3.sa-east-1.amazonaws.com"] - } + } } module.exports = nextConfig