From 79528d67d9a7de704c41cca5d5b66a2f345227f8 Mon Sep 17 00:00:00 2001 From: Tim Hansen Date: Tue, 20 Oct 2020 09:34:25 -0600 Subject: [PATCH] fix(cost-insights): More exports to help custom alerting --- plugins/cost-insights/src/components/BarChart/BarChart.tsx | 2 +- .../src/components/CostOverviewCard/CostOverviewTooltip.tsx | 2 +- plugins/cost-insights/src/components/Tooltip/index.ts | 6 ++++-- plugins/cost-insights/src/components/index.ts | 1 + plugins/cost-insights/src/index.ts | 1 + 5 files changed, 8 insertions(+), 4 deletions(-) diff --git a/plugins/cost-insights/src/components/BarChart/BarChart.tsx b/plugins/cost-insights/src/components/BarChart/BarChart.tsx index 2f923304a8..6b2bbc1490 100644 --- a/plugins/cost-insights/src/components/BarChart/BarChart.tsx +++ b/plugins/cost-insights/src/components/BarChart/BarChart.tsx @@ -30,7 +30,7 @@ import { import { Box, useTheme } from '@material-ui/core'; import BarChartTick from './BarChartTick'; import BarChartStepper from './BarChartStepper'; -import Tooltip, { TooltipItemProps } from '../Tooltip'; +import { Tooltip, TooltipItemProps } from '../Tooltip'; import { currencyFormatter } from '../../utils/formatters'; import { diff --git a/plugins/cost-insights/src/components/CostOverviewCard/CostOverviewTooltip.tsx b/plugins/cost-insights/src/components/CostOverviewCard/CostOverviewTooltip.tsx index a30f370166..c8a7b8533c 100644 --- a/plugins/cost-insights/src/components/CostOverviewCard/CostOverviewTooltip.tsx +++ b/plugins/cost-insights/src/components/CostOverviewCard/CostOverviewTooltip.tsx @@ -16,7 +16,7 @@ import React from 'react'; import moment from 'moment'; import { TooltipPayload, TooltipProps } from 'recharts'; -import Tooltip, { TooltipItemProps } from '../../components/Tooltip'; +import { Tooltip, TooltipItemProps } from '../../components/Tooltip'; import { DEFAULT_DATE_FORMAT } from '../../types'; export type CostOverviewTooltipProps = TooltipProps & { diff --git a/plugins/cost-insights/src/components/Tooltip/index.ts b/plugins/cost-insights/src/components/Tooltip/index.ts index ca20ab1242..d56352d324 100644 --- a/plugins/cost-insights/src/components/Tooltip/index.ts +++ b/plugins/cost-insights/src/components/Tooltip/index.ts @@ -14,5 +14,7 @@ * limitations under the License. */ -export { default } from './Tooltip'; -export * from './TooltipItem'; +export { default as Tooltip } from './Tooltip'; +export type { TooltipProps } from './Tooltip'; +export { default as TooltipItem } from './TooltipItem'; +export type { TooltipItemProps } from './TooltipItem'; diff --git a/plugins/cost-insights/src/components/index.ts b/plugins/cost-insights/src/components/index.ts index a24a28e4f1..6ba17f22fc 100644 --- a/plugins/cost-insights/src/components/index.ts +++ b/plugins/cost-insights/src/components/index.ts @@ -16,3 +16,4 @@ export { default as BarChart } from './BarChart'; export { default as LegendItem } from './LegendItem'; +export * from './Tooltip'; diff --git a/plugins/cost-insights/src/index.ts b/plugins/cost-insights/src/index.ts index a46857f077..ba912d2316 100644 --- a/plugins/cost-insights/src/index.ts +++ b/plugins/cost-insights/src/index.ts @@ -17,4 +17,5 @@ export { plugin } from './plugin'; export * from './api'; export * from './components'; +export { useCurrency } from './hooks'; export * from './types';