diff --git a/CHANGELOG.md b/CHANGELOG.md index c14c9d635a..f1852e28d9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ All notable changes to the Wazuh app project will be documented in this file. ### Changed - Changed the reference from Manager to Wazuh server in the guide to deploy a new agent [#4239](https://github.com/wazuh/wazuh-kibana-app/pull/4239) +- Changed styles in visualizations. [#4254](https://github.com/wazuh/wazuh-kibana-app/pull/4254) ### Fixed diff --git a/public/components/agents/vuls/inventory.tsx b/public/components/agents/vuls/inventory.tsx index f581a50b82..952d5e0a89 100644 --- a/public/components/agents/vuls/inventory.tsx +++ b/public/components/agents/vuls/inventory.tsx @@ -21,8 +21,6 @@ import { EuiFlexItem, EuiCard, EuiStat, - EuiText, - EuiIcon, EuiToolTip, euiPaletteColorBlind, } from '@elastic/eui'; diff --git a/public/components/agents/vuls/inventory/table.tsx b/public/components/agents/vuls/inventory/table.tsx index ef95a2466b..7e9f4a3f05 100644 --- a/public/components/agents/vuls/inventory/table.tsx +++ b/public/components/agents/vuls/inventory/table.tsx @@ -11,7 +11,7 @@ */ import React, { Component } from 'react'; -import { Direction, EuiOverlayMask, EuiOutsideClickDetector } from '@elastic/eui'; +import { Direction } from '@elastic/eui'; import { FlyoutDetail } from './flyout'; import { filtersToObject, IFilter, IWzSuggestItem } from '../../../wz-search-bar'; import { TableWzAPI } from '../../../../components/common/tables'; diff --git a/public/components/common/charts/visualizations/basic.tsx b/public/components/common/charts/visualizations/basic.tsx index 0f50a53ead..3897ae1788 100644 --- a/public/components/common/charts/visualizations/basic.tsx +++ b/public/components/common/charts/visualizations/basic.tsx @@ -1,4 +1,4 @@ -import React, { useCallback, useState} from "react"; +import React, { useCallback, useState } from "react"; import { ChartLegend } from "./legend"; import { ChartDonut, ChartDonutProps } from '../charts/donut'; import { EuiEmptyPrompt, EuiFlexGroup, EuiFlexItem, EuiLoadingChart, EuiText, EuiSelect, EuiSpacer } from '@elastic/eui'; @@ -6,14 +6,14 @@ import { useAsyncActionRunOnStart } from "../../hooks"; export type VisualizationBasicProps = ChartDonutProps & { type: 'donut', - size: number | string | {width: number | string, height: number | string} + size: number | string | { width: number | string, height: number | string } showLegend?: boolean isLoading?: boolean noDataTitle?: string noDataMessage?: string | (() => React.node) errorTitle?: string errorMessage?: string | (() => React.node) - error?: {message: string} + error?: { message: string } } const chartTypes = { @@ -37,16 +37,16 @@ export const VisualizationBasic = ({ error }: VisualizationBasicProps) => { const { width, height } = typeof size === 'object' ? size : { width: size, height: size }; - + let visualization = null; - if(isLoading){ + if (isLoading) { visualization = ( -