feat(storybook): Co-habitating/Upgrading Storybooks to v7 (dependency madness ensues) (#26907)

This commit is contained in:
Evan Rusackas
2024-02-15 07:40:17 -07:00
committed by GitHub
parent e43097329f
commit 753ef69529
233 changed files with 22456 additions and 23297 deletions

View File

@@ -45,12 +45,15 @@ export const extractForecastSeriesContext = (
export const extractForecastSeriesContexts = (
seriesNames: string[],
): { [key: string]: ForecastSeriesEnum[] } =>
seriesNames.reduce((agg, name) => {
const context = extractForecastSeriesContext(name);
const currentContexts = agg[context.name] || [];
currentContexts.push(context.type);
return { ...agg, [context.name]: currentContexts };
}, {} as { [key: string]: ForecastSeriesEnum[] });
seriesNames.reduce(
(agg, name) => {
const context = extractForecastSeriesContext(name);
const currentContexts = agg[context.name] || [];
currentContexts.push(context.type);
return { ...agg, [context.name]: currentContexts };
},
{} as { [key: string]: ForecastSeriesEnum[] },
);
export const extractForecastValuesFromTooltipParams = (
params: any[],