diff --git a/x-pack/plugins/security_solution/public/management/pages/endpoint_hosts/view/components/out_of_date.tsx b/x-pack/plugins/security_solution/public/management/pages/endpoint_hosts/view/components/out_of_date.tsx index 0546c57b38268..d65cfc0cd397b 100644 --- a/x-pack/plugins/security_solution/public/management/pages/endpoint_hosts/view/components/out_of_date.tsx +++ b/x-pack/plugins/security_solution/public/management/pages/endpoint_hosts/view/components/out_of_date.tsx @@ -11,8 +11,14 @@ import { FormattedMessage } from '@kbn/i18n/react'; export const OutOfDate = React.memo<{ style?: React.CSSProperties }>(({ style, ...otherProps }) => { return ( - - + + ); diff --git a/x-pack/plugins/security_solution/public/management/pages/endpoint_hosts/view/details/components/endpoint_details_tabs.tsx b/x-pack/plugins/security_solution/public/management/pages/endpoint_hosts/view/details/components/endpoint_details_tabs.tsx index adae21b55a637..4c0e1b799a6be 100644 --- a/x-pack/plugins/security_solution/public/management/pages/endpoint_hosts/view/details/components/endpoint_details_tabs.tsx +++ b/x-pack/plugins/security_solution/public/management/pages/endpoint_hosts/view/details/components/endpoint_details_tabs.tsx @@ -6,7 +6,7 @@ */ import React, { memo, useMemo } from 'react'; -import { EuiTab, EuiTabs, EuiFlyoutBody, EuiSpacer } from '@elastic/eui'; +import { EuiTab, EuiTabs, EuiFlyoutBody } from '@elastic/eui'; import { EndpointIndexUIQueryParams } from '../../../types'; import { EndpointDetailsFlyoutHeader } from './flyout_header'; @@ -68,7 +68,6 @@ export const EndpointDetailsFlyoutTabs = memo( return ( <> - {renderTabs} diff --git a/x-pack/plugins/security_solution/public/management/pages/endpoint_hosts/view/details/components/flyout_header.tsx b/x-pack/plugins/security_solution/public/management/pages/endpoint_hosts/view/details/components/flyout_header.tsx index f791c0d6adf17..3c8cdf6bf3183 100644 --- a/x-pack/plugins/security_solution/public/management/pages/endpoint_hosts/view/details/components/flyout_header.tsx +++ b/x-pack/plugins/security_solution/public/management/pages/endpoint_hosts/view/details/components/flyout_header.tsx @@ -28,7 +28,7 @@ export const EndpointDetailsFlyoutHeader = memo( ) : ( - +

{ + return ( + +
{children}
+
+ ); +}; + export const EndpointDetailsContent = memo( ({ details, @@ -70,83 +77,96 @@ export const EndpointDetailsContent = memo( const detailsResults = useMemo(() => { return [ { - title: i18n.translate('xpack.securitySolution.endpoint.details.os', { - defaultMessage: 'OS', - }), - description: {details.host.os.full}, + title: ( + + + + ), + description: {details.host.os.full}, }, { - title: i18n.translate('xpack.securitySolution.endpoint.details.agentStatus', { - defaultMessage: 'Agent Status', - }), + title: ( + + + + ), description: , }, { - title: i18n.translate('xpack.securitySolution.endpoint.details.lastSeen', { - defaultMessage: 'Last Seen', - }), + title: ( + + + + ), description: ( - - {' '} - + + ), }, { - title: i18n.translate('xpack.securitySolution.endpoint.details.policy', { - defaultMessage: 'Policy', - }), + title: ( + + + + ), description: ( - - - - - {details.Endpoint.policy.applied.name} - + + + {details.Endpoint.policy.applied.name} + + {details.Endpoint.policy.applied.endpoint_policy_version && ( + + - - - {details.Endpoint.policy.applied.endpoint_policy_version && ( - - - - - - )} - {isPolicyOutOfDate(details.Endpoint.policy.applied, policyInfo) && ( - - - - )} - - + )} + {isPolicyOutOfDate(details.Endpoint.policy.applied, policyInfo) && } + ), }, { - title: i18n.translate('xpack.securitySolution.endpoint.details.policyStatus', { - defaultMessage: 'Policy Status', - }), + title: ( + + + + ), description: ( - + {details.agent.version}, + title: ( + + + + ), + description: {details.agent.version}, }, { - title: i18n.translate('xpack.securitySolution.endpoint.details.ipAddress', { - defaultMessage: 'IP Address', - }), + title: ( + + + + ), description: ( - - - {details.host.ip.map((ip: string, index: number) => ( - - ))} - - + + {details.host.ip.map((ip: string, index: number) => ( + + {ip} + + ))} + ), }, ]; }, [details, hostStatus, policyStatus, policyStatusClickHandler, policyInfo]); return ( - <> - + + - + ); } );