From 1615bb4defaaef7759a9d4fa5e7858e4b46eb65a Mon Sep 17 00:00:00 2001 From: HendrikThePendric Date: Tue, 2 Jul 2024 12:36:22 +0200 Subject: [PATCH] chore: use named functions for default exports too --- .../config/adapters/dhis_highcharts/subtitle/index.js | 2 +- .../config/adapters/dhis_highcharts/title/yearOverYear.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/visualizations/config/adapters/dhis_highcharts/subtitle/index.js b/src/visualizations/config/adapters/dhis_highcharts/subtitle/index.js index 9d2dc1bc7..6d7dfeae4 100644 --- a/src/visualizations/config/adapters/dhis_highcharts/subtitle/index.js +++ b/src/visualizations/config/adapters/dhis_highcharts/subtitle/index.js @@ -36,7 +36,7 @@ function getDefault(layout, dashboard, filterTitle) { } } -export default function (series, layout, metaData, dashboard) { +export default function subtitle(series, layout, metaData, dashboard) { const fontStyle = mergeFontStyleWithDefault( layout.fontStyle && layout.fontStyle[FONT_STYLE_VISUALIZATION_SUBTITLE], FONT_STYLE_VISUALIZATION_SUBTITLE diff --git a/src/visualizations/config/adapters/dhis_highcharts/title/yearOverYear.js b/src/visualizations/config/adapters/dhis_highcharts/title/yearOverYear.js index d37f5d6be..d9955cfaa 100644 --- a/src/visualizations/config/adapters/dhis_highcharts/title/yearOverYear.js +++ b/src/visualizations/config/adapters/dhis_highcharts/title/yearOverYear.js @@ -1,6 +1,6 @@ import getFilterText from '../../../../util/getFilterText.js' -export default function (layout, metaData, dashboard) { +export default function yearOverYear(layout, metaData, dashboard) { const titleFragments = [] if (layout.columns && layout.columns.length && !dashboard) {