diff --git a/public/pages/Overview/components/Widgets/Summary.tsx b/public/pages/Overview/components/Widgets/Summary.tsx index e2ebdd361..f7cec1576 100644 --- a/public/pages/Overview/components/Widgets/Summary.tsx +++ b/public/pages/Overview/components/Widgets/Summary.tsx @@ -3,14 +3,14 @@ * SPDX-License-Identifier: Apache-2.0 */ -import { EuiFlexGroup, EuiFlexItem, EuiText, EuiLink } from '@elastic/eui'; -import { ROUTES } from '../../../../utils/constants'; +import { EuiFlexGroup, EuiFlexItem, EuiLink, EuiStat } from '@elastic/eui'; import React, { useCallback, useEffect, useState } from 'react'; import { WidgetContainer } from './WidgetContainer'; import { summaryGroupByOptions } from '../../utils/constants'; import { getOverviewVisualizationSpec, getTimeWithMinPrecision } from '../../utils/helpers'; import { AlertItem, FindingItem } from '../../models/interfaces'; import { createSelectComponent, renderVisualization } from '../../../../utils/helpers'; +import { ROUTES } from '../../../../utils/constants'; export interface SummaryProps { findings: FindingItem[]; @@ -92,26 +92,22 @@ export const Summary: React.FC = ({ alerts, findings }) => { - -

Total active alerts

-
- - {activeAlerts} - + {activeAlerts}} + description="Total active alerts" + textAlign="left" + titleColor="primary" + isLoading={!activeAlerts} + />
- -

Total findings

-
- - {totalFindings} - + {totalFindings}} + description="Total findings" + textAlign="left" + titleColor="primary" + isLoading={!totalFindings} + />